diff --git a/src/main/java/com/microsoft/graph/beta/generated/BaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/beta/generated/BaseGraphServiceClient.java index 35cd9706c8f..f9d55b4e7fe 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/BaseGraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/beta/generated/BaseGraphServiceClient.java @@ -73,6 +73,7 @@ import com.microsoft.graph.beta.messagetraces.MessageTracesRequestBuilder; import com.microsoft.graph.beta.mobilitymanagementpolicies.MobilityManagementPoliciesRequestBuilder; import com.microsoft.graph.beta.monitoring.MonitoringRequestBuilder; +import com.microsoft.graph.beta.network.NetworkRequestBuilder; import com.microsoft.graph.beta.networkaccess.NetworkAccessRequestBuilder; import com.microsoft.graph.beta.oauth2permissiongrants.Oauth2PermissionGrantsRequestBuilder; import com.microsoft.graph.beta.onpremisespublishingprofiles.OnPremisesPublishingProfilesRequestBuilder; @@ -687,6 +688,14 @@ public MobilityManagementPoliciesRequestBuilder mobilityManagementPolicies() { public MonitoringRequestBuilder monitoring() { return new MonitoringRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the network singleton. + * @return a {@link NetworkRequestBuilder} + */ + @jakarta.annotation.Nonnull + public NetworkRequestBuilder network() { + return new NetworkRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the networkAccessRoot singleton. * @return a {@link NetworkAccessRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/resourceconnections/item/ResourceConnectionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/resourceconnections/item/ResourceConnectionItemRequestBuilder.java index a3419ed19e1..77262ef18d5 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/resourceconnections/item/ResourceConnectionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/resourceconnections/item/ResourceConnectionItemRequestBuilder.java @@ -37,18 +37,18 @@ public ResourceConnectionItemRequestBuilder(@jakarta.annotation.Nonnull final St super(requestAdapter, "{+baseurl}/admin/windows/updates/resourceConnections/{resourceConnection%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete an operationalInsightsConnection object. + * Delete a resourceConnection 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 an operationalInsightsConnection object. + * Delete a resourceConnection 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); @@ -106,7 +106,7 @@ public ResourceConnection patch(@jakarta.annotation.Nonnull final ResourceConnec return this.requestAdapter.send(requestInfo, errorMapping, ResourceConnection::createFromDiscriminatorValue); } /** - * Delete an operationalInsightsConnection object. + * Delete a resourceConnection object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -114,7 +114,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete an operationalInsightsConnection object. + * Delete a resourceConnection object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatableassets/item/UpdatableAssetItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatableassets/item/UpdatableAssetItemRequestBuilder.java index fc1464b8a93..7d8718c1c86 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatableassets/item/UpdatableAssetItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatableassets/item/UpdatableAssetItemRequestBuilder.java @@ -73,18 +73,18 @@ public UpdatableAssetItemRequestBuilder(@jakarta.annotation.Nonnull final String super(requestAdapter, "{+baseurl}/admin/windows/updates/updatableAssets/{updatableAsset%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. + * Delete an updatableAsset 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 an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. + * Delete an updatableAsset 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); @@ -93,21 +93,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read the properties of an azureADDevice object. + * Read the properties and relationships of an updatableAssetGroup object. * @return a {@link UpdatableAsset} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public UpdatableAsset get() { return get(null); } /** - * Read the properties of an azureADDevice object. + * Read the properties and relationships of an updatableAssetGroup object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UpdatableAsset} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public UpdatableAsset get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -142,7 +142,7 @@ public UpdatableAsset patch(@jakarta.annotation.Nonnull final UpdatableAsset bod return this.requestAdapter.send(requestInfo, errorMapping, UpdatableAsset::createFromDiscriminatorValue); } /** - * Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. + * Delete an updatableAsset object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -150,7 +150,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. + * Delete an updatableAsset object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -162,7 +162,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read the properties of an azureADDevice object. + * Read the properties and relationships of an updatableAssetGroup object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -170,7 +170,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties of an azureADDevice object. + * Read the properties and relationships of an updatableAssetGroup object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -222,7 +222,7 @@ public UpdatableAssetItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fina public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read the properties of an azureADDevice object. + * Read the properties and relationships of an updatableAssetGroup object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatepolicies/item/compliancechanges/item/ComplianceChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatepolicies/item/compliancechanges/item/ComplianceChangeItemRequestBuilder.java index 4c4dd4db3b2..d1182ca8edc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatepolicies/item/compliancechanges/item/ComplianceChangeItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/admin/windows/updates/updatepolicies/item/compliancechanges/item/ComplianceChangeItemRequestBuilder.java @@ -46,18 +46,18 @@ public ComplianceChangeItemRequestBuilder(@jakarta.annotation.Nonnull final Stri super(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete a complianceChange object. + * Delete a contentApproval object. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete a complianceChange object. + * Delete a contentApproval object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see 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); @@ -117,7 +117,7 @@ public ComplianceChange patch(@jakarta.annotation.Nonnull final ComplianceChange return this.requestAdapter.send(requestInfo, errorMapping, ComplianceChange::createFromDiscriminatorValue); } /** - * Delete a complianceChange object. + * Delete a contentApproval object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -125,7 +125,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete a complianceChange object. + * Delete a contentApproval object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 4db38389ab3..6a04228d560 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..91fc9b583c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.administrativeunits.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/administrativeunits/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/restore/RestoreRequestBuilder.java index 343038b42f5..b82a60def5b 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/administrativeunits/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/app/calls/item/participants/invite/InviteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/app/calls/item/participants/invite/InviteRequestBuilder.java index 325d49a04f5..8f747290eac 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/app/calls/item/participants/invite/InviteRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/app/calls/item/participants/invite/InviteRequestBuilder.java @@ -36,23 +36,23 @@ public InviteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/app/calls/{call%2Did}/participants/invite", rawUrl); } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param body The request body * @return a {@link InviteParticipantsOperation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InviteParticipantsOperation post(@jakarta.annotation.Nonnull final InvitePostRequestBody body) { return post(body, null); } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link InviteParticipantsOperation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InviteParticipantsOperation post(@jakarta.annotation.Nonnull final InvitePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -63,7 +63,7 @@ public InviteParticipantsOperation post(@jakarta.annotation.Nonnull final Invite return this.requestAdapter.send(requestInfo, errorMapping, InviteParticipantsOperation::createFromDiscriminatorValue); } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @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/beta/generated/applications/item/federatedidentitycredentials/item/FederatedIdentityCredentialItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/federatedidentitycredentials/item/FederatedIdentityCredentialItemRequestBuilder.java index 5f4407ef750..62e173624b0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/federatedidentitycredentials/item/FederatedIdentityCredentialItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/federatedidentitycredentials/item/FederatedIdentityCredentialItemRequestBuilder.java @@ -81,7 +81,7 @@ public FederatedIdentityCredential get(@jakarta.annotation.Nullable final java.u return this.requestAdapter.send(requestInfo, errorMapping, FederatedIdentityCredential::createFromDiscriminatorValue); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @return a {@link FederatedIdentityCredential} * @throws ODataError When receiving a 4XX or 5XX status code @@ -92,7 +92,7 @@ public FederatedIdentityCredential patch(@jakarta.annotation.Nonnull final Feder return patch(body, null); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link FederatedIdentityCredential} @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @return a {@link RequestInformation} */ @@ -157,7 +157,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/applications/item/federatedidentitycredentialswithname/FederatedIdentityCredentialsWithNameRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/federatedidentitycredentialswithname/FederatedIdentityCredentialsWithNameRequestBuilder.java index ff137b5a5a7..e272badab59 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/federatedidentitycredentialswithname/FederatedIdentityCredentialsWithNameRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/federatedidentitycredentialswithname/FederatedIdentityCredentialsWithNameRequestBuilder.java @@ -83,7 +83,7 @@ public FederatedIdentityCredential get(@jakarta.annotation.Nullable final java.u return this.requestAdapter.send(requestInfo, errorMapping, FederatedIdentityCredential::createFromDiscriminatorValue); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @return a {@link FederatedIdentityCredential} * @throws ODataError When receiving a 4XX or 5XX status code @@ -94,7 +94,7 @@ public FederatedIdentityCredential patch(@jakarta.annotation.Nonnull final Feder return patch(body, null); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link FederatedIdentityCredential} @@ -150,7 +150,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @return a {@link RequestInformation} */ @@ -159,7 +159,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. + * Create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/applications/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 1c7309a2e1c..ab1ec57e42c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/applications/{application%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/applications/item/owners/ref/RefRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/owners/ref/RefRequestBuilder.java index f8717e3a664..d510ea77711 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/owners/ref/RefRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/owners/ref/RefRequestBuilder.java @@ -82,7 +82,7 @@ public StringCollectionResponse get(@jakarta.annotation.Nullable final java.util return this.requestAdapter.send(requestInfo, errorMapping, StringCollectionResponse::createFromDiscriminatorValue); } /** - * Use this API to add an owner to an application by posting to the owners collection. + * Add an owner to an application. Currently, only individual users are supported as owners of applications. * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -91,7 +91,7 @@ public void post(@jakarta.annotation.Nonnull final ReferenceCreate body) { post(body, null); } /** - * Use this API to add an owner to an application by posting to the owners collection. + * Add an owner to an application. Currently, only individual users are supported as owners of applications. * @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 @@ -145,7 +145,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Use this API to add an owner to an application by posting to the owners collection. + * Add an owner to an application. Currently, only individual users are supported as owners of applications. * @param body The request body * @return a {@link RequestInformation} */ @@ -154,7 +154,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Use this API to add an owner to an application by posting to the owners collection. + * Add an owner to an application. Currently, only individual users are supported as owners of applications. * @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/beta/generated/applications/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..ecb262d2ebc --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.applications.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/applications/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/applications/item/restore/RestoreRequestBuilder.java index 91c04f3957a..8c2a67e8c97 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/applications/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/applications/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/chats/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/chats/item/messages/MessagesRequestBuilder.java index 8b513a472d4..28d22f038c8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/chats/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/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 cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. * @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 cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. * @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 cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. * @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 cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. * @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/beta/generated/communications/calls/item/participants/invite/InviteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/communications/calls/item/participants/invite/InviteRequestBuilder.java index 439c6074308..fe1f1e3681e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/communications/calls/item/participants/invite/InviteRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/communications/calls/item/participants/invite/InviteRequestBuilder.java @@ -36,23 +36,23 @@ public InviteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl); } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param body The request body * @return a {@link InviteParticipantsOperation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InviteParticipantsOperation post(@jakarta.annotation.Nonnull final InvitePostRequestBody body) { return post(body, null); } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link InviteParticipantsOperation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InviteParticipantsOperation post(@jakarta.annotation.Nonnull final InvitePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -63,7 +63,7 @@ public InviteParticipantsOperation post(@jakarta.annotation.Nonnull final Invite return this.requestAdapter.send(requestInfo, errorMapping, InviteParticipantsOperation::createFromDiscriminatorValue); } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Invite participants to the active call. For more information about how to handle operations, see commsOperation. + * Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. * @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/beta/generated/contacts/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/contacts/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 26535fc066a..8897558afec 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/contacts/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/contacts/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/contacts/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/contacts/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..e5f3880c463 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/contacts/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.contacts.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/contacts/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/contacts/item/restore/RestoreRequestBuilder.java index 8ed38e09e5d..10769459780 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/contacts/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/contacts/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/contracts/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/contracts/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 3e526ed4be9..1bcc8d461c6 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/contracts/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/contracts/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/contracts/{contract%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/contracts/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/contracts/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..3e4eb6868de --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/contracts/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.contracts.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/contracts/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/contracts/item/restore/RestoreRequestBuilder.java index 289a378aea8..1068ea70d19 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/contracts/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/contracts/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/deviceappmanagement/ioslobappprovisioningconfigurations/item/assignments/AssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/deviceappmanagement/ioslobappprovisioningconfigurations/item/assignments/AssignmentsRequestBuilder.java index dd7a7e224f4..1839e20b236 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/deviceappmanagement/ioslobappprovisioningconfigurations/item/assignments/AssignmentsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/deviceappmanagement/ioslobappprovisioningconfigurations/item/assignments/AssignmentsRequestBuilder.java @@ -60,7 +60,7 @@ public AssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/deviceAppManagement/iosLobAppProvisioningConfigurations/{iosLobAppProvisioningConfiguration%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @return a {@link IosLobAppProvisioningConfigurationAssignmentCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public IosLobAppProvisioningConfigurationAssignmentCollectionResponse get() { return get(null); } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link IosLobAppProvisioningConfigurationAssignmentCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public IosLobAppProvisioningConfigurationAssignment post(@jakarta.annotation.Non return this.requestAdapter.send(requestInfo, errorMapping, IosLobAppProvisioningConfigurationAssignment::createFromDiscriminatorValue); } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public AssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final Strin return new AssignmentsRequestBuilder(rawUrl, requestAdapter); } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/deviceappmanagement/ioslobappprovisioningconfigurations/item/assignments/item/IosLobAppProvisioningConfigurationAssignmentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/deviceappmanagement/ioslobappprovisioningconfigurations/item/assignments/item/IosLobAppProvisioningConfigurationAssignmentItemRequestBuilder.java index 8c1b1d177df..1b7ff14e809 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/deviceappmanagement/ioslobappprovisioningconfigurations/item/assignments/item/IosLobAppProvisioningConfigurationAssignmentItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/deviceappmanagement/ioslobappprovisioningconfigurations/item/assignments/item/IosLobAppProvisioningConfigurationAssignmentItemRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @return a {@link IosLobAppProvisioningConfigurationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public IosLobAppProvisioningConfigurationAssignment get() { return get(null); } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link IosLobAppProvisioningConfigurationAssignment} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public IosLobAppProvisioningConfigurationAssignmentItemRequestBuilder withUrl(@j public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * The associated group assignments for IosLobAppProvisioningConfiguration. + * The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/DeviceManagementRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/DeviceManagementRequestBuilder.java index 977e72407c2..541f71d4b43 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/DeviceManagementRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/DeviceManagementRequestBuilder.java @@ -91,6 +91,7 @@ import com.microsoft.graph.beta.devicemanagement.manageddeviceencryptionstates.ManagedDeviceEncryptionStatesRequestBuilder; import com.microsoft.graph.beta.devicemanagement.manageddeviceoverview.ManagedDeviceOverviewRequestBuilder; import com.microsoft.graph.beta.devicemanagement.manageddevices.ManagedDevicesRequestBuilder; +import com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages.ManagedDeviceWindowsOSImagesRequestBuilder; import com.microsoft.graph.beta.devicemanagement.microsofttunnelconfigurations.MicrosoftTunnelConfigurationsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.microsofttunnelhealththresholds.MicrosoftTunnelHealthThresholdsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.microsofttunnelserverlogcollectionresponses.MicrosoftTunnelServerLogCollectionResponsesRequestBuilder; @@ -905,6 +906,14 @@ public ManagedDeviceOverviewRequestBuilder managedDeviceOverview() { public ManagedDevicesRequestBuilder managedDevices() { return new ManagedDevicesRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the managedDeviceWindowsOSImages property of the microsoft.graph.deviceManagement entity. + * @return a {@link ManagedDeviceWindowsOSImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ManagedDeviceWindowsOSImagesRequestBuilder managedDeviceWindowsOSImages() { + return new ManagedDeviceWindowsOSImagesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the microsoftTunnelConfigurations property of the microsoft.graph.deviceManagement entity. * @return a {@link MicrosoftTunnelConfigurationsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/ManagedDeviceItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/ManagedDeviceItemRequestBuilder.java index 42d41a257bf..55f7a851b42 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/ManagedDeviceItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/ManagedDeviceItemRequestBuilder.java @@ -3,6 +3,7 @@ import com.microsoft.graph.beta.devicemanagement.comanageddevices.item.activatedeviceesim.ActivateDeviceEsimRequestBuilder; import com.microsoft.graph.beta.devicemanagement.comanageddevices.item.assignmentfilterevaluationstatusdetails.AssignmentFilterEvaluationStatusDetailsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.comanageddevices.item.bypassactivationlock.BypassActivationLockRequestBuilder; +import com.microsoft.graph.beta.devicemanagement.comanageddevices.item.changeassignments.ChangeAssignmentsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.comanageddevices.item.cleanwindowsdevice.CleanWindowsDeviceRequestBuilder; import com.microsoft.graph.beta.devicemanagement.comanageddevices.item.createdevicelogcollectionrequest.CreateDeviceLogCollectionRequestRequestBuilder; import com.microsoft.graph.beta.devicemanagement.comanageddevices.item.deleteuserfromsharedappledevice.DeleteUserFromSharedAppleDeviceRequestBuilder; @@ -102,6 +103,14 @@ public AssignmentFilterEvaluationStatusDetailsRequestBuilder assignmentFilterEva public BypassActivationLockRequestBuilder bypassActivationLock() { return new BypassActivationLockRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the changeAssignments method. + * @return a {@link ChangeAssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ChangeAssignmentsRequestBuilder changeAssignments() { + return new ChangeAssignmentsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the cleanWindowsDevice method. * @return a {@link CleanWindowsDeviceRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java new file mode 100644 index 00000000000..b832a62c90d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.beta.devicemanagement.comanageddevices.item.changeassignments; + +import com.microsoft.graph.beta.models.DeviceAssignmentItem; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ChangeAssignmentsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ChangeAssignmentsPostRequestBody} and sets the default values. + */ + public ChangeAssignmentsPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ChangeAssignmentsPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ChangeAssignmentsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ChangeAssignmentsPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the deviceAssignmentItems property value. The deviceAssignmentItems property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getDeviceAssignmentItems() { + return this.backingStore.get("deviceAssignmentItems"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("deviceAssignmentItems", (n) -> { this.setDeviceAssignmentItems(n.getCollectionOfObjectValues(DeviceAssignmentItem::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.writeCollectionOfObjectValues("deviceAssignmentItems", this.getDeviceAssignmentItems()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the deviceAssignmentItems property value. The deviceAssignmentItems property + * @param value Value to set for the deviceAssignmentItems property. + */ + public void setDeviceAssignmentItems(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("deviceAssignmentItems", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java new file mode 100644 index 00000000000..c1aae10b73d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java @@ -0,0 +1,98 @@ +package com.microsoft.graph.beta.devicemanagement.comanageddevices.item.changeassignments; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the changeAssignments method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ChangeAssignmentsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ChangeAssignmentsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ChangeAssignmentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/comanagedDevices/{managedDevice%2Did}/changeAssignments", pathParameters); + } + /** + * Instantiates a new {@link ChangeAssignmentsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ChangeAssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/comanagedDevices/{managedDevice%2Did}/changeAssignments", rawUrl); + } + /** + * Invoke action changeAssignments + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body) { + post(body, null); + } + /** + * Invoke action changeAssignments + * @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 ChangeAssignmentsPostRequestBody body, @jakarta.annotation.Nullable final 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 changeAssignments + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Invoke action changeAssignments + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ChangeAssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ChangeAssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ChangeAssignmentsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java index b11a15c162f..f99f1e17829 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/comanageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java @@ -39,9 +39,12 @@ public GetCloudPcRemoteActionResultsRequestBuilder(@jakarta.annotation.Nonnull f * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @return a {@link GetCloudPcRemoteActionResultsGetResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults * @see Find more info here */ @jakarta.annotation.Nullable + @Deprecated public GetCloudPcRemoteActionResultsGetResponse get() { return get(null); } @@ -50,9 +53,12 @@ public GetCloudPcRemoteActionResultsGetResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetCloudPcRemoteActionResultsGetResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults * @see Find more info here */ @jakarta.annotation.Nullable + @Deprecated public GetCloudPcRemoteActionResultsGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); final HashMap> errorMapping = new HashMap>(); @@ -62,8 +68,11 @@ public GetCloudPcRemoteActionResultsGetResponse get(@jakarta.annotation.Nullable /** * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @return a {@link RequestInformation} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } @@ -71,8 +80,11 @@ public RequestInformation toGetRequestInformation() { * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); @@ -83,8 +95,11 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. * @param rawUrl The raw URL to use for the request builder. * @return a {@link GetCloudPcRemoteActionResultsRequestBuilder} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public GetCloudPcRemoteActionResultsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { Objects.requireNonNull(rawUrl); return new GetCloudPcRemoteActionResultsRequestBuilder(rawUrl, requestAdapter); diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/DeviceManagementConfigurationPolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/DeviceManagementConfigurationPolicyItemRequestBuilder.java index defeaa51d04..9b4023a245c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/DeviceManagementConfigurationPolicyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/DeviceManagementConfigurationPolicyItemRequestBuilder.java @@ -7,6 +7,7 @@ import com.microsoft.graph.beta.devicemanagement.configurationpolicies.item.reorder.ReorderRequestBuilder; import com.microsoft.graph.beta.devicemanagement.configurationpolicies.item.retrieveenrollmenttimedevicemembershiptarget.RetrieveEnrollmentTimeDeviceMembershipTargetRequestBuilder; import com.microsoft.graph.beta.devicemanagement.configurationpolicies.item.retrievelatestupgradedefaultbaselinepolicy.RetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder; +import com.microsoft.graph.beta.devicemanagement.configurationpolicies.item.setenrollmenttimedevicemembershiptarget.SetEnrollmentTimeDeviceMembershipTargetRequestBuilder; import com.microsoft.graph.beta.devicemanagement.configurationpolicies.item.settings.SettingsRequestBuilder; import com.microsoft.graph.beta.models.DeviceManagementConfigurationPolicy; import com.microsoft.graph.beta.models.odataerrors.ODataError; @@ -84,6 +85,14 @@ public RetrieveEnrollmentTimeDeviceMembershipTargetRequestBuilder retrieveEnroll public RetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder retrieveLatestUpgradeDefaultBaselinePolicy() { return new RetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the setEnrollmentTimeDeviceMembershipTarget method. + * @return a {@link SetEnrollmentTimeDeviceMembershipTargetRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SetEnrollmentTimeDeviceMembershipTargetRequestBuilder setEnrollmentTimeDeviceMembershipTarget() { + return new SetEnrollmentTimeDeviceMembershipTargetRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the settings property of the microsoft.graph.deviceManagementConfigurationPolicy entity. * @return a {@link SettingsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetPostRequestBody.java new file mode 100644 index 00000000000..905270dcf64 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.beta.devicemanagement.configurationpolicies.item.setenrollmenttimedevicemembershiptarget; + +import com.microsoft.graph.beta.models.EnrollmentTimeDeviceMembershipTarget; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SetEnrollmentTimeDeviceMembershipTargetPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link SetEnrollmentTimeDeviceMembershipTargetPostRequestBody} and sets the default values. + */ + public SetEnrollmentTimeDeviceMembershipTargetPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link SetEnrollmentTimeDeviceMembershipTargetPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static SetEnrollmentTimeDeviceMembershipTargetPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new SetEnrollmentTimeDeviceMembershipTargetPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the enrollmentTimeDeviceMembershipTargets property value. The enrollmentTimeDeviceMembershipTargets property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getEnrollmentTimeDeviceMembershipTargets() { + return this.backingStore.get("enrollmentTimeDeviceMembershipTargets"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("enrollmentTimeDeviceMembershipTargets", (n) -> { this.setEnrollmentTimeDeviceMembershipTargets(n.getCollectionOfObjectValues(EnrollmentTimeDeviceMembershipTarget::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.writeCollectionOfObjectValues("enrollmentTimeDeviceMembershipTargets", this.getEnrollmentTimeDeviceMembershipTargets()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the enrollmentTimeDeviceMembershipTargets property value. The enrollmentTimeDeviceMembershipTargets property + * @param value Value to set for the enrollmentTimeDeviceMembershipTargets property. + */ + public void setEnrollmentTimeDeviceMembershipTargets(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("enrollmentTimeDeviceMembershipTargets", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetRequestBuilder.java new file mode 100644 index 00000000000..671be35567e --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/configurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetRequestBuilder.java @@ -0,0 +1,103 @@ +package com.microsoft.graph.beta.devicemanagement.configurationpolicies.item.setenrollmenttimedevicemembershiptarget; + +import com.microsoft.graph.beta.models.EnrollmentTimeDeviceMembershipTargetResult; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the setEnrollmentTimeDeviceMembershipTarget method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SetEnrollmentTimeDeviceMembershipTargetRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link SetEnrollmentTimeDeviceMembershipTargetRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SetEnrollmentTimeDeviceMembershipTargetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/configurationPolicies/{deviceManagementConfigurationPolicy%2Did}/setEnrollmentTimeDeviceMembershipTarget", pathParameters); + } + /** + * Instantiates a new {@link SetEnrollmentTimeDeviceMembershipTargetRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SetEnrollmentTimeDeviceMembershipTargetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/configurationPolicies/{deviceManagementConfigurationPolicy%2Did}/setEnrollmentTimeDeviceMembershipTarget", rawUrl); + } + /** + * Invoke action setEnrollmentTimeDeviceMembershipTarget + * @param body The request body + * @return a {@link EnrollmentTimeDeviceMembershipTargetResult} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public EnrollmentTimeDeviceMembershipTargetResult post(@jakarta.annotation.Nonnull final SetEnrollmentTimeDeviceMembershipTargetPostRequestBody body) { + return post(body, null); + } + /** + * Invoke action setEnrollmentTimeDeviceMembershipTarget + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link EnrollmentTimeDeviceMembershipTargetResult} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public EnrollmentTimeDeviceMembershipTargetResult post(@jakarta.annotation.Nonnull final SetEnrollmentTimeDeviceMembershipTargetPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, EnrollmentTimeDeviceMembershipTargetResult::createFromDiscriminatorValue); + } + /** + * Invoke action setEnrollmentTimeDeviceMembershipTarget + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetEnrollmentTimeDeviceMembershipTargetPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Invoke action setEnrollmentTimeDeviceMembershipTarget + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetEnrollmentTimeDeviceMembershipTargetPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link SetEnrollmentTimeDeviceMembershipTargetRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SetEnrollmentTimeDeviceMembershipTargetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new SetEnrollmentTimeDeviceMembershipTargetRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/devicecompliancepolicies/item/scheduledactionsforrule/ScheduledActionsForRuleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/devicecompliancepolicies/item/scheduledactionsforrule/ScheduledActionsForRuleRequestBuilder.java index 7adff25300c..62ca53adbac 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/devicecompliancepolicies/item/scheduledactionsforrule/ScheduledActionsForRuleRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/devicecompliancepolicies/item/scheduledactionsforrule/ScheduledActionsForRuleRequestBuilder.java @@ -60,7 +60,7 @@ public ScheduledActionsForRuleRequestBuilder(@jakarta.annotation.Nonnull final S super(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}/scheduledActionsForRule{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule * @return a {@link DeviceComplianceScheduledActionForRuleCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public DeviceComplianceScheduledActionForRuleCollectionResponse get() { return get(null); } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceComplianceScheduledActionForRuleCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public DeviceComplianceScheduledActionForRule post(@jakarta.annotation.Nonnull f return this.requestAdapter.send(requestInfo, errorMapping, DeviceComplianceScheduledActionForRule::createFromDiscriminatorValue); } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public ScheduledActionsForRuleRequestBuilder withUrl(@jakarta.annotation.Nonnull return new ScheduledActionsForRuleRequestBuilder(rawUrl, requestAdapter); } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/devicecompliancepolicies/item/scheduledactionsforrule/item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/devicecompliancepolicies/item/scheduledactionsforrule/item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.java index 9623fa78d19..f22b6c211bf 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/devicecompliancepolicies/item/scheduledactionsforrule/item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/devicecompliancepolicies/item/scheduledactionsforrule/item/DeviceComplianceScheduledActionForRuleItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule * @return a {@link DeviceComplianceScheduledActionForRule} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public DeviceComplianceScheduledActionForRule get() { return get(null); } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DeviceComplianceScheduledActionForRule} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public DeviceComplianceScheduledActionForRuleItemRequestBuilder withUrl(@jakarta public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * The list of scheduled action for this rule */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/ManagedDeviceItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/ManagedDeviceItemRequestBuilder.java index 524d32bc672..b5c1abbb7e3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/ManagedDeviceItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/ManagedDeviceItemRequestBuilder.java @@ -3,6 +3,7 @@ import com.microsoft.graph.beta.devicemanagement.manageddevices.item.activatedeviceesim.ActivateDeviceEsimRequestBuilder; import com.microsoft.graph.beta.devicemanagement.manageddevices.item.assignmentfilterevaluationstatusdetails.AssignmentFilterEvaluationStatusDetailsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.manageddevices.item.bypassactivationlock.BypassActivationLockRequestBuilder; +import com.microsoft.graph.beta.devicemanagement.manageddevices.item.changeassignments.ChangeAssignmentsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.manageddevices.item.cleanwindowsdevice.CleanWindowsDeviceRequestBuilder; import com.microsoft.graph.beta.devicemanagement.manageddevices.item.createdevicelogcollectionrequest.CreateDeviceLogCollectionRequestRequestBuilder; import com.microsoft.graph.beta.devicemanagement.manageddevices.item.deleteuserfromsharedappledevice.DeleteUserFromSharedAppleDeviceRequestBuilder; @@ -102,6 +103,14 @@ public AssignmentFilterEvaluationStatusDetailsRequestBuilder assignmentFilterEva public BypassActivationLockRequestBuilder bypassActivationLock() { return new BypassActivationLockRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the changeAssignments method. + * @return a {@link ChangeAssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ChangeAssignmentsRequestBuilder changeAssignments() { + return new ChangeAssignmentsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the cleanWindowsDevice method. * @return a {@link CleanWindowsDeviceRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java new file mode 100644 index 00000000000..d99393d512b --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.beta.devicemanagement.manageddevices.item.changeassignments; + +import com.microsoft.graph.beta.models.DeviceAssignmentItem; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ChangeAssignmentsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ChangeAssignmentsPostRequestBody} and sets the default values. + */ + public ChangeAssignmentsPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ChangeAssignmentsPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ChangeAssignmentsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ChangeAssignmentsPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the deviceAssignmentItems property value. The deviceAssignmentItems property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getDeviceAssignmentItems() { + return this.backingStore.get("deviceAssignmentItems"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("deviceAssignmentItems", (n) -> { this.setDeviceAssignmentItems(n.getCollectionOfObjectValues(DeviceAssignmentItem::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.writeCollectionOfObjectValues("deviceAssignmentItems", this.getDeviceAssignmentItems()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the deviceAssignmentItems property value. The deviceAssignmentItems property + * @param value Value to set for the deviceAssignmentItems property. + */ + public void setDeviceAssignmentItems(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("deviceAssignmentItems", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java new file mode 100644 index 00000000000..b6d7e7d7c1c --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java @@ -0,0 +1,98 @@ +package com.microsoft.graph.beta.devicemanagement.manageddevices.item.changeassignments; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the changeAssignments method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ChangeAssignmentsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ChangeAssignmentsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ChangeAssignmentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/changeAssignments", pathParameters); + } + /** + * Instantiates a new {@link ChangeAssignmentsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ChangeAssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/managedDevices/{managedDevice%2Did}/changeAssignments", rawUrl); + } + /** + * Invoke action changeAssignments + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body) { + post(body, null); + } + /** + * Invoke action changeAssignments + * @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 ChangeAssignmentsPostRequestBody body, @jakarta.annotation.Nullable final 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 changeAssignments + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Invoke action changeAssignments + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ChangeAssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ChangeAssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ChangeAssignmentsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java index 37093f54dfe..24f817ec063 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java @@ -39,9 +39,12 @@ public GetCloudPcRemoteActionResultsRequestBuilder(@jakarta.annotation.Nonnull f * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @return a {@link GetCloudPcRemoteActionResultsGetResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults * @see Find more info here */ @jakarta.annotation.Nullable + @Deprecated public GetCloudPcRemoteActionResultsGetResponse get() { return get(null); } @@ -50,9 +53,12 @@ public GetCloudPcRemoteActionResultsGetResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetCloudPcRemoteActionResultsGetResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults * @see Find more info here */ @jakarta.annotation.Nullable + @Deprecated public GetCloudPcRemoteActionResultsGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); final HashMap> errorMapping = new HashMap>(); @@ -62,8 +68,11 @@ public GetCloudPcRemoteActionResultsGetResponse get(@jakarta.annotation.Nullable /** * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @return a {@link RequestInformation} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } @@ -71,8 +80,11 @@ public RequestInformation toGetRequestInformation() { * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); @@ -83,8 +95,11 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. * @param rawUrl The raw URL to use for the request builder. * @return a {@link GetCloudPcRemoteActionResultsRequestBuilder} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public GetCloudPcRemoteActionResultsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { Objects.requireNonNull(rawUrl); return new GetCloudPcRemoteActionResultsRequestBuilder(rawUrl, requestAdapter); diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/ManagedDeviceWindowsOSImagesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/ManagedDeviceWindowsOSImagesRequestBuilder.java new file mode 100644 index 00000000000..d3421015817 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/ManagedDeviceWindowsOSImagesRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages; + +import com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages.count.CountRequestBuilder; +import com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages.item.ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder; +import com.microsoft.graph.beta.models.ManagedDeviceWindowsOperatingSystemImage; +import com.microsoft.graph.beta.models.ManagedDeviceWindowsOperatingSystemImageCollectionResponse; +import com.microsoft.graph.beta.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 managedDeviceWindowsOSImages property of the microsoft.graph.deviceManagement entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ManagedDeviceWindowsOSImagesRequestBuilder 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 managedDeviceWindowsOSImages property of the microsoft.graph.deviceManagement entity. + * @param managedDeviceWindowsOperatingSystemImageId The unique identifier of managedDeviceWindowsOperatingSystemImage + * @return a {@link ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder byManagedDeviceWindowsOperatingSystemImageId(@jakarta.annotation.Nonnull final String managedDeviceWindowsOperatingSystemImageId) { + Objects.requireNonNull(managedDeviceWindowsOperatingSystemImageId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("managedDeviceWindowsOperatingSystemImage%2Did", managedDeviceWindowsOperatingSystemImageId); + return new ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ManagedDeviceWindowsOSImagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ManagedDeviceWindowsOSImagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/managedDeviceWindowsOSImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ManagedDeviceWindowsOSImagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ManagedDeviceWindowsOSImagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/managedDeviceWindowsOSImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * A list of ManagedDeviceWindowsOperatingSystemImages + * @return a {@link ManagedDeviceWindowsOperatingSystemImageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemImageCollectionResponse get() { + return get(null); + } + /** + * A list of ManagedDeviceWindowsOperatingSystemImages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ManagedDeviceWindowsOperatingSystemImageCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemImageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ManagedDeviceWindowsOperatingSystemImageCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to managedDeviceWindowsOSImages for deviceManagement + * @param body The request body + * @return a {@link ManagedDeviceWindowsOperatingSystemImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemImage post(@jakarta.annotation.Nonnull final ManagedDeviceWindowsOperatingSystemImage body) { + return post(body, null); + } + /** + * Create new navigation property to managedDeviceWindowsOSImages for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ManagedDeviceWindowsOperatingSystemImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemImage post(@jakarta.annotation.Nonnull final ManagedDeviceWindowsOperatingSystemImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ManagedDeviceWindowsOperatingSystemImage::createFromDiscriminatorValue); + } + /** + * A list of ManagedDeviceWindowsOperatingSystemImages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * A list of ManagedDeviceWindowsOperatingSystemImages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 managedDeviceWindowsOSImages for deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ManagedDeviceWindowsOperatingSystemImage body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to managedDeviceWindowsOSImages for deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ManagedDeviceWindowsOperatingSystemImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ManagedDeviceWindowsOSImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ManagedDeviceWindowsOSImagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ManagedDeviceWindowsOSImagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * A list of ManagedDeviceWindowsOperatingSystemImages + */ + @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/beta/generated/devicemanagement/manageddevicewindowsosimages/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/count/CountRequestBuilder.java new file mode 100644 index 00000000000..5a6c59c2597 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages.count; + +import com.microsoft.graph.beta.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}/deviceManagement/managedDeviceWindowsOSImages/$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}/deviceManagement/managedDeviceWindowsOSImages/$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/beta/generated/devicemanagement/manageddevicewindowsosimages/item/ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/item/ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder.java new file mode 100644 index 00000000000..5b3bba13823 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/item/ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages.item; + +import com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages.item.getallmanageddevicewindowsosimages.GetAllManagedDeviceWindowsOSImagesRequestBuilder; +import com.microsoft.graph.beta.models.ManagedDeviceWindowsOperatingSystemImage; +import com.microsoft.graph.beta.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 managedDeviceWindowsOSImages property of the microsoft.graph.deviceManagement entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the getAllManagedDeviceWindowsOSImages method. + * @return a {@link GetAllManagedDeviceWindowsOSImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllManagedDeviceWindowsOSImagesRequestBuilder getAllManagedDeviceWindowsOSImages() { + return new GetAllManagedDeviceWindowsOSImagesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/managedDeviceWindowsOSImages/{managedDeviceWindowsOperatingSystemImage%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/managedDeviceWindowsOSImages/{managedDeviceWindowsOperatingSystemImage%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property managedDeviceWindowsOSImages for deviceManagement + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property managedDeviceWindowsOSImages for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.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 list of ManagedDeviceWindowsOperatingSystemImages + * @return a {@link ManagedDeviceWindowsOperatingSystemImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemImage get() { + return get(null); + } + /** + * A list of ManagedDeviceWindowsOperatingSystemImages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ManagedDeviceWindowsOperatingSystemImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemImage get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ManagedDeviceWindowsOperatingSystemImage::createFromDiscriminatorValue); + } + /** + * Update the navigation property managedDeviceWindowsOSImages in deviceManagement + * @param body The request body + * @return a {@link ManagedDeviceWindowsOperatingSystemImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemImage patch(@jakarta.annotation.Nonnull final ManagedDeviceWindowsOperatingSystemImage body) { + return patch(body, null); + } + /** + * Update the navigation property managedDeviceWindowsOSImages in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ManagedDeviceWindowsOperatingSystemImage} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemImage patch(@jakarta.annotation.Nonnull final ManagedDeviceWindowsOperatingSystemImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ManagedDeviceWindowsOperatingSystemImage::createFromDiscriminatorValue); + } + /** + * Delete navigation property managedDeviceWindowsOSImages for deviceManagement + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property managedDeviceWindowsOSImages for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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 list of ManagedDeviceWindowsOperatingSystemImages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * A list of ManagedDeviceWindowsOperatingSystemImages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property managedDeviceWindowsOSImages in deviceManagement + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ManagedDeviceWindowsOperatingSystemImage body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property managedDeviceWindowsOSImages in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ManagedDeviceWindowsOperatingSystemImage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ManagedDeviceWindowsOperatingSystemImageItemRequestBuilder(rawUrl, 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 list of ManagedDeviceWindowsOperatingSystemImages + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/item/getallmanageddevicewindowsosimages/GetAllManagedDeviceWindowsOSImagesGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/item/getallmanageddevicewindowsosimages/GetAllManagedDeviceWindowsOSImagesGetResponse.java new file mode 100644 index 00000000000..b843a48de9f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/item/getallmanageddevicewindowsosimages/GetAllManagedDeviceWindowsOSImagesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages.item.getallmanageddevicewindowsosimages; + +import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.beta.models.ManagedDeviceWindowsOperatingSystemImage; +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 GetAllManagedDeviceWindowsOSImagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAllManagedDeviceWindowsOSImagesGetResponse} and sets the default values. + */ + public GetAllManagedDeviceWindowsOSImagesGetResponse() { + 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 GetAllManagedDeviceWindowsOSImagesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAllManagedDeviceWindowsOSImagesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAllManagedDeviceWindowsOSImagesGetResponse(); + } + /** + * 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(ManagedDeviceWindowsOperatingSystemImage::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/beta/generated/devicemanagement/manageddevicewindowsosimages/item/getallmanageddevicewindowsosimages/GetAllManagedDeviceWindowsOSImagesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/item/getallmanageddevicewindowsosimages/GetAllManagedDeviceWindowsOSImagesRequestBuilder.java new file mode 100644 index 00000000000..cba45ed4627 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/manageddevicewindowsosimages/item/getallmanageddevicewindowsosimages/GetAllManagedDeviceWindowsOSImagesRequestBuilder.java @@ -0,0 +1,164 @@ +package com.microsoft.graph.beta.devicemanagement.manageddevicewindowsosimages.item.getallmanageddevicewindowsosimages; + +import com.microsoft.graph.beta.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 getAllManagedDeviceWindowsOSImages method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAllManagedDeviceWindowsOSImagesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAllManagedDeviceWindowsOSImagesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAllManagedDeviceWindowsOSImagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/managedDeviceWindowsOSImages/{managedDeviceWindowsOperatingSystemImage%2Did}/getAllManagedDeviceWindowsOSImages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAllManagedDeviceWindowsOSImagesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAllManagedDeviceWindowsOSImagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/managedDeviceWindowsOSImages/{managedDeviceWindowsOperatingSystemImage%2Did}/getAllManagedDeviceWindowsOSImages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Invoke function getAllManagedDeviceWindowsOSImages + * @return a {@link GetAllManagedDeviceWindowsOSImagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllManagedDeviceWindowsOSImagesGetResponse get() { + return get(null); + } + /** + * Invoke function getAllManagedDeviceWindowsOSImages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAllManagedDeviceWindowsOSImagesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public GetAllManagedDeviceWindowsOSImagesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAllManagedDeviceWindowsOSImagesGetResponse::createFromDiscriminatorValue); + } + /** + * Invoke function getAllManagedDeviceWindowsOSImages + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Invoke function getAllManagedDeviceWindowsOSImages + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 GetAllManagedDeviceWindowsOSImagesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAllManagedDeviceWindowsOSImagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAllManagedDeviceWindowsOSImagesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Invoke function getAllManagedDeviceWindowsOSImages + */ + @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/beta/generated/devicemanagement/mobileapptroubleshootingevents/item/applogcollectionrequests/AppLogCollectionRequestsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/mobileapptroubleshootingevents/item/applogcollectionrequests/AppLogCollectionRequestsRequestBuilder.java index 1ac56ed7cab..26d812ece28 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/mobileapptroubleshootingevents/item/applogcollectionrequests/AppLogCollectionRequestsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/mobileapptroubleshootingevents/item/applogcollectionrequests/AppLogCollectionRequestsRequestBuilder.java @@ -60,7 +60,7 @@ public AppLogCollectionRequestsRequestBuilder(@jakarta.annotation.Nonnull final super(requestAdapter, "{+baseurl}/deviceManagement/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @return a {@link AppLogCollectionRequestCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public AppLogCollectionRequestCollectionResponse get() { return get(null); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppLogCollectionRequestCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public AppLogCollectionRequest post(@jakarta.annotation.Nonnull final AppLogColl return this.requestAdapter.send(requestInfo, errorMapping, AppLogCollectionRequest::createFromDiscriminatorValue); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public AppLogCollectionRequestsRequestBuilder withUrl(@jakarta.annotation.Nonnul return new AppLogCollectionRequestsRequestBuilder(rawUrl, requestAdapter); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/mobileapptroubleshootingevents/item/applogcollectionrequests/item/AppLogCollectionRequestItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/mobileapptroubleshootingevents/item/applogcollectionrequests/item/AppLogCollectionRequestItemRequestBuilder.java index 4f28260f8c5..2e77fd4d2b6 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/mobileapptroubleshootingevents/item/applogcollectionrequests/item/AppLogCollectionRequestItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/mobileapptroubleshootingevents/item/applogcollectionrequests/item/AppLogCollectionRequestItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @return a {@link AppLogCollectionRequest} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public AppLogCollectionRequest get() { return get(null); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppLogCollectionRequest} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public AppLogCollectionRequestItemRequestBuilder withUrl(@jakarta.annotation.Non public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/ReportsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/ReportsRequestBuilder.java index 6700ebab91a..d9c6706a3af 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/ReportsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/ReportsRequestBuilder.java @@ -73,6 +73,7 @@ import com.microsoft.graph.beta.devicemanagement.reports.getwindowsupdatealertsummaryreport.GetWindowsUpdateAlertSummaryReportRequestBuilder; import com.microsoft.graph.beta.devicemanagement.reports.getzebrafotadeploymentreport.GetZebraFotaDeploymentReportRequestBuilder; import com.microsoft.graph.beta.devicemanagement.reports.retrieveassignedapplicationsreport.RetrieveAssignedApplicationsReportRequestBuilder; +import com.microsoft.graph.beta.devicemanagement.reports.retrievewin32catalogappsupdatereport.RetrieveWin32CatalogAppsUpdateReportRequestBuilder; import com.microsoft.graph.beta.models.DeviceManagementReports; import com.microsoft.graph.beta.models.odataerrors.ODataError; import com.microsoft.kiota.BaseRequestBuilder; @@ -677,6 +678,14 @@ public GetZebraFotaDeploymentReportRequestBuilder getZebraFotaDeploymentReport() public RetrieveAssignedApplicationsReportRequestBuilder retrieveAssignedApplicationsReport() { return new RetrieveAssignedApplicationsReportRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the retrieveWin32CatalogAppsUpdateReport method. + * @return a {@link RetrieveWin32CatalogAppsUpdateReportRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RetrieveWin32CatalogAppsUpdateReportRequestBuilder retrieveWin32CatalogAppsUpdateReport() { + return new RetrieveWin32CatalogAppsUpdateReportRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link ReportsRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/retrievewin32catalogappsupdatereport/RetrieveWin32CatalogAppsUpdateReportPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/retrievewin32catalogappsupdatereport/RetrieveWin32CatalogAppsUpdateReportPostRequestBody.java new file mode 100644 index 00000000000..389fe10f709 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/retrievewin32catalogappsupdatereport/RetrieveWin32CatalogAppsUpdateReportPostRequestBody.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.beta.devicemanagement.reports.retrievewin32catalogappsupdatereport; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RetrieveWin32CatalogAppsUpdateReportPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link RetrieveWin32CatalogAppsUpdateReportPostRequestBody} and sets the default values. + */ + public RetrieveWin32CatalogAppsUpdateReportPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RetrieveWin32CatalogAppsUpdateReportPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static RetrieveWin32CatalogAppsUpdateReportPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RetrieveWin32CatalogAppsUpdateReportPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * 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("filter", (n) -> { this.setFilter(n.getStringValue()); }); + deserializerMap.put("groupBy", (n) -> { this.setGroupBy(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("orderBy", (n) -> { this.setOrderBy(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("search", (n) -> { this.setSearch(n.getStringValue()); }); + deserializerMap.put("select", (n) -> { this.setSelect(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("sessionId", (n) -> { this.setSessionId(n.getStringValue()); }); + deserializerMap.put("skip", (n) -> { this.setSkip(n.getIntegerValue()); }); + deserializerMap.put("top", (n) -> { this.setTop(n.getIntegerValue()); }); + return deserializerMap; + } + /** + * Gets the filter property value. The filter property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getFilter() { + return this.backingStore.get("filter"); + } + /** + * Gets the groupBy property value. The groupBy property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getGroupBy() { + return this.backingStore.get("groupBy"); + } + /** + * 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 orderBy property value. The orderBy property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getOrderBy() { + return this.backingStore.get("orderBy"); + } + /** + * Gets the search property value. The search property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSearch() { + return this.backingStore.get("search"); + } + /** + * Gets the select property value. The select property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getSelect() { + return this.backingStore.get("select"); + } + /** + * Gets the sessionId property value. The sessionId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSessionId() { + return this.backingStore.get("sessionId"); + } + /** + * Gets the skip property value. The skip property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getSkip() { + return this.backingStore.get("skip"); + } + /** + * Gets the top property value. The top property + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer 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.writeStringValue("filter", this.getFilter()); + writer.writeCollectionOfPrimitiveValues("groupBy", this.getGroupBy()); + writer.writeStringValue("name", this.getName()); + writer.writeCollectionOfPrimitiveValues("orderBy", this.getOrderBy()); + writer.writeStringValue("search", this.getSearch()); + writer.writeCollectionOfPrimitiveValues("select", this.getSelect()); + writer.writeStringValue("sessionId", this.getSessionId()); + writer.writeIntegerValue("skip", this.getSkip()); + writer.writeIntegerValue("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 filter property value. The filter property + * @param value Value to set for the filter property. + */ + public void setFilter(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("filter", value); + } + /** + * Sets the groupBy property value. The groupBy property + * @param value Value to set for the groupBy property. + */ + public void setGroupBy(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("groupBy", 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 orderBy property value. The orderBy property + * @param value Value to set for the orderBy property. + */ + public void setOrderBy(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("orderBy", value); + } + /** + * Sets the search property value. The search property + * @param value Value to set for the search property. + */ + public void setSearch(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("search", value); + } + /** + * Sets the select property value. The select property + * @param value Value to set for the select property. + */ + public void setSelect(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("select", value); + } + /** + * Sets the sessionId property value. The sessionId property + * @param value Value to set for the sessionId property. + */ + public void setSessionId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("sessionId", value); + } + /** + * Sets the skip property value. The skip property + * @param value Value to set for the skip property. + */ + public void setSkip(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("skip", 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 Integer value) { + this.backingStore.set("top", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/retrievewin32catalogappsupdatereport/RetrieveWin32CatalogAppsUpdateReportRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/retrievewin32catalogappsupdatereport/RetrieveWin32CatalogAppsUpdateReportRequestBuilder.java new file mode 100644 index 00000000000..bc07383ab6b --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reports/retrievewin32catalogappsupdatereport/RetrieveWin32CatalogAppsUpdateReportRequestBuilder.java @@ -0,0 +1,103 @@ +package com.microsoft.graph.beta.devicemanagement.reports.retrievewin32catalogappsupdatereport; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +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 call the retrieveWin32CatalogAppsUpdateReport method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RetrieveWin32CatalogAppsUpdateReportRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RetrieveWin32CatalogAppsUpdateReportRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RetrieveWin32CatalogAppsUpdateReportRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/reports/retrieveWin32CatalogAppsUpdateReport", pathParameters); + } + /** + * Instantiates a new {@link RetrieveWin32CatalogAppsUpdateReportRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RetrieveWin32CatalogAppsUpdateReportRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/reports/retrieveWin32CatalogAppsUpdateReport", rawUrl); + } + /** + * Invoke action retrieveWin32CatalogAppsUpdateReport + * @param body The request body + * @return a {@link InputStream} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public InputStream post(@jakarta.annotation.Nonnull final RetrieveWin32CatalogAppsUpdateReportPostRequestBody body) { + return post(body, null); + } + /** + * Invoke action retrieveWin32CatalogAppsUpdateReport + * @param body The request body + * @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 post(@jakarta.annotation.Nonnull final RetrieveWin32CatalogAppsUpdateReportPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, InputStream.class); + } + /** + * Invoke action retrieveWin32CatalogAppsUpdateReport + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RetrieveWin32CatalogAppsUpdateReportPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Invoke action retrieveWin32CatalogAppsUpdateReport + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RetrieveWin32CatalogAppsUpdateReportPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RetrieveWin32CatalogAppsUpdateReportRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RetrieveWin32CatalogAppsUpdateReportRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RetrieveWin32CatalogAppsUpdateReportRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/DeviceManagementConfigurationPolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/DeviceManagementConfigurationPolicyItemRequestBuilder.java index 5b84a2d47e9..2f2d820bfe2 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/DeviceManagementConfigurationPolicyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/DeviceManagementConfigurationPolicyItemRequestBuilder.java @@ -7,6 +7,7 @@ import com.microsoft.graph.beta.devicemanagement.reusablepolicysettings.item.referencingconfigurationpolicies.item.reorder.ReorderRequestBuilder; import com.microsoft.graph.beta.devicemanagement.reusablepolicysettings.item.referencingconfigurationpolicies.item.retrieveenrollmenttimedevicemembershiptarget.RetrieveEnrollmentTimeDeviceMembershipTargetRequestBuilder; import com.microsoft.graph.beta.devicemanagement.reusablepolicysettings.item.referencingconfigurationpolicies.item.retrievelatestupgradedefaultbaselinepolicy.RetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder; +import com.microsoft.graph.beta.devicemanagement.reusablepolicysettings.item.referencingconfigurationpolicies.item.setenrollmenttimedevicemembershiptarget.SetEnrollmentTimeDeviceMembershipTargetRequestBuilder; import com.microsoft.graph.beta.devicemanagement.reusablepolicysettings.item.referencingconfigurationpolicies.item.settings.SettingsRequestBuilder; import com.microsoft.graph.beta.models.DeviceManagementConfigurationPolicy; import com.microsoft.graph.beta.models.odataerrors.ODataError; @@ -84,6 +85,14 @@ public RetrieveEnrollmentTimeDeviceMembershipTargetRequestBuilder retrieveEnroll public RetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder retrieveLatestUpgradeDefaultBaselinePolicy() { return new RetrieveLatestUpgradeDefaultBaselinePolicyRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the setEnrollmentTimeDeviceMembershipTarget method. + * @return a {@link SetEnrollmentTimeDeviceMembershipTargetRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SetEnrollmentTimeDeviceMembershipTargetRequestBuilder setEnrollmentTimeDeviceMembershipTarget() { + return new SetEnrollmentTimeDeviceMembershipTargetRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the settings property of the microsoft.graph.deviceManagementConfigurationPolicy entity. * @return a {@link SettingsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetPostRequestBody.java new file mode 100644 index 00000000000..d7768cf98e0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.beta.devicemanagement.reusablepolicysettings.item.referencingconfigurationpolicies.item.setenrollmenttimedevicemembershiptarget; + +import com.microsoft.graph.beta.models.EnrollmentTimeDeviceMembershipTarget; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SetEnrollmentTimeDeviceMembershipTargetPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link SetEnrollmentTimeDeviceMembershipTargetPostRequestBody} and sets the default values. + */ + public SetEnrollmentTimeDeviceMembershipTargetPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link SetEnrollmentTimeDeviceMembershipTargetPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static SetEnrollmentTimeDeviceMembershipTargetPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new SetEnrollmentTimeDeviceMembershipTargetPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the enrollmentTimeDeviceMembershipTargets property value. The enrollmentTimeDeviceMembershipTargets property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getEnrollmentTimeDeviceMembershipTargets() { + return this.backingStore.get("enrollmentTimeDeviceMembershipTargets"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("enrollmentTimeDeviceMembershipTargets", (n) -> { this.setEnrollmentTimeDeviceMembershipTargets(n.getCollectionOfObjectValues(EnrollmentTimeDeviceMembershipTarget::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.writeCollectionOfObjectValues("enrollmentTimeDeviceMembershipTargets", this.getEnrollmentTimeDeviceMembershipTargets()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the enrollmentTimeDeviceMembershipTargets property value. The enrollmentTimeDeviceMembershipTargets property + * @param value Value to set for the enrollmentTimeDeviceMembershipTargets property. + */ + public void setEnrollmentTimeDeviceMembershipTargets(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("enrollmentTimeDeviceMembershipTargets", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetRequestBuilder.java new file mode 100644 index 00000000000..96da872e428 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/reusablepolicysettings/item/referencingconfigurationpolicies/item/setenrollmenttimedevicemembershiptarget/SetEnrollmentTimeDeviceMembershipTargetRequestBuilder.java @@ -0,0 +1,103 @@ +package com.microsoft.graph.beta.devicemanagement.reusablepolicysettings.item.referencingconfigurationpolicies.item.setenrollmenttimedevicemembershiptarget; + +import com.microsoft.graph.beta.models.EnrollmentTimeDeviceMembershipTargetResult; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the setEnrollmentTimeDeviceMembershipTarget method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SetEnrollmentTimeDeviceMembershipTargetRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link SetEnrollmentTimeDeviceMembershipTargetRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SetEnrollmentTimeDeviceMembershipTargetRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/reusablePolicySettings/{deviceManagementReusablePolicySetting%2Did}/referencingConfigurationPolicies/{deviceManagementConfigurationPolicy%2Did}/setEnrollmentTimeDeviceMembershipTarget", pathParameters); + } + /** + * Instantiates a new {@link SetEnrollmentTimeDeviceMembershipTargetRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SetEnrollmentTimeDeviceMembershipTargetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/reusablePolicySettings/{deviceManagementReusablePolicySetting%2Did}/referencingConfigurationPolicies/{deviceManagementConfigurationPolicy%2Did}/setEnrollmentTimeDeviceMembershipTarget", rawUrl); + } + /** + * Invoke action setEnrollmentTimeDeviceMembershipTarget + * @param body The request body + * @return a {@link EnrollmentTimeDeviceMembershipTargetResult} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public EnrollmentTimeDeviceMembershipTargetResult post(@jakarta.annotation.Nonnull final SetEnrollmentTimeDeviceMembershipTargetPostRequestBody body) { + return post(body, null); + } + /** + * Invoke action setEnrollmentTimeDeviceMembershipTarget + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link EnrollmentTimeDeviceMembershipTargetResult} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public EnrollmentTimeDeviceMembershipTargetResult post(@jakarta.annotation.Nonnull final SetEnrollmentTimeDeviceMembershipTargetPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, EnrollmentTimeDeviceMembershipTargetResult::createFromDiscriminatorValue); + } + /** + * Invoke action setEnrollmentTimeDeviceMembershipTarget + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetEnrollmentTimeDeviceMembershipTargetPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Invoke action setEnrollmentTimeDeviceMembershipTarget + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final SetEnrollmentTimeDeviceMembershipTargetPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link SetEnrollmentTimeDeviceMembershipTargetRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SetEnrollmentTimeDeviceMembershipTargetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new SetEnrollmentTimeDeviceMembershipTargetRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/VirtualEndpointRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/VirtualEndpointRequestBuilder.java index 46e19434598..b8888bc5190 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/VirtualEndpointRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/VirtualEndpointRequestBuilder.java @@ -16,7 +16,6 @@ import com.microsoft.graph.beta.devicemanagement.virtualendpoint.retrievescopedpermissions.RetrieveScopedPermissionsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.retrievetenantencryptionsetting.RetrieveTenantEncryptionSettingRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.serviceplans.ServicePlansRequestBuilder; -import com.microsoft.graph.beta.devicemanagement.virtualendpoint.shareduseserviceplans.SharedUseServicePlansRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.snapshots.SnapshotsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.supportedregions.SupportedRegionsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.usersettings.UserSettingsRequestBuilder; @@ -168,14 +167,6 @@ public RetrieveTenantEncryptionSettingRequestBuilder retrieveTenantEncryptionSet public ServicePlansRequestBuilder servicePlans() { return new ServicePlansRequestBuilder(pathParameters, requestAdapter); } - /** - * Provides operations to manage the sharedUseServicePlans property of the microsoft.graph.virtualEndpoint entity. - * @return a {@link SharedUseServicePlansRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SharedUseServicePlansRequestBuilder sharedUseServicePlans() { - return new SharedUseServicePlansRequestBuilder(pathParameters, requestAdapter); - } /** * Provides operations to manage the snapshots property of the microsoft.graph.virtualEndpoint entity. * @return a {@link SnapshotsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/CloudPCItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/CloudPCItemRequestBuilder.java index 6e89fc1f727..888b5789ca2 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/CloudPCItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/CloudPCItemRequestBuilder.java @@ -6,7 +6,6 @@ import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.getcloudpcconnectivityhistory.GetCloudPcConnectivityHistoryRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.getcloudpclaunchinfo.GetCloudPcLaunchInfoRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.getfrontlinecloudpcaccessstate.GetFrontlineCloudPcAccessStateRequestBuilder; -import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.getshiftworkcloudpcaccessstate.GetShiftWorkCloudPcAccessStateRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.getsupportedcloudpcremoteactions.GetSupportedCloudPcRemoteActionsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.poweroff.PowerOffRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.poweron.PowerOnRequestBuilder; @@ -15,6 +14,7 @@ import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.reprovision.ReprovisionRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.resize.ResizeRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.restore.RestoreRequestBuilder; +import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.retrievecloudpcremoteactionresults.RetrieveCloudPCRemoteActionResultsRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.retrievereviewstatus.RetrieveReviewStatusRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.retrypartneragentinstallation.RetryPartnerAgentInstallationRequestBuilder; import com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.setreviewstatus.SetReviewStatusRequestBuilder; @@ -89,14 +89,6 @@ public GetCloudPcLaunchInfoRequestBuilder getCloudPcLaunchInfo() { public GetFrontlineCloudPcAccessStateRequestBuilder getFrontlineCloudPcAccessState() { return new GetFrontlineCloudPcAccessStateRequestBuilder(pathParameters, requestAdapter); } - /** - * Provides operations to call the getShiftWorkCloudPcAccessState method. - * @return a {@link GetShiftWorkCloudPcAccessStateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetShiftWorkCloudPcAccessStateRequestBuilder getShiftWorkCloudPcAccessState() { - return new GetShiftWorkCloudPcAccessStateRequestBuilder(pathParameters, requestAdapter); - } /** * Provides operations to call the getSupportedCloudPcRemoteActions method. * @return a {@link GetSupportedCloudPcRemoteActionsRequestBuilder} @@ -161,6 +153,14 @@ public ResizeRequestBuilder resize() { public RestoreRequestBuilder restore() { return new RestoreRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the retrieveCloudPCRemoteActionResults method. + * @return a {@link RetrieveCloudPCRemoteActionResultsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RetrieveCloudPCRemoteActionResultsRequestBuilder retrieveCloudPCRemoteActionResults() { + return new RetrieveCloudPCRemoteActionResultsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the retrieveReviewStatus method. * @return a {@link RetrieveReviewStatusRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/getshiftworkcloudpcaccessstate/GetShiftWorkCloudPcAccessStateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/getshiftworkcloudpcaccessstate/GetShiftWorkCloudPcAccessStateRequestBuilder.java deleted file mode 100644 index 22753aaa6ae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/getshiftworkcloudpcaccessstate/GetShiftWorkCloudPcAccessStateRequestBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.getshiftworkcloudpcaccessstate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ShiftWorkCloudPcAccessState; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to call the getShiftWorkCloudPcAccessState method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetShiftWorkCloudPcAccessStateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GetShiftWorkCloudPcAccessStateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetShiftWorkCloudPcAccessStateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/getShiftWorkCloudPcAccessState()", pathParameters); - } - /** - * Instantiates a new {@link GetShiftWorkCloudPcAccessStateRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetShiftWorkCloudPcAccessStateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/getShiftWorkCloudPcAccessState()", rawUrl); - } - /** - * Get the shiftWorkCloudPcAccessState of a shift work Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest shift work Cloud PC accessState and determine whether the shift work Cloud PC is accessible to the user. If a web client needs to connect to a shift work Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState is not active/activating/standbyMode, the web client shows a 'bad bookmark'. - * @return a {@link ShiftWorkCloudPcAccessState} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - * @see Find more info here - */ - @jakarta.annotation.Nullable - @Deprecated - public ShiftWorkCloudPcAccessState get() { - return get(null); - } - /** - * Get the shiftWorkCloudPcAccessState of a shift work Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest shift work Cloud PC accessState and determine whether the shift work Cloud PC is accessible to the user. If a web client needs to connect to a shift work Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState is not active/activating/standbyMode, the web client shows a 'bad bookmark'. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ShiftWorkCloudPcAccessState} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - * @see Find more info here - */ - @jakarta.annotation.Nullable - @Deprecated - public ShiftWorkCloudPcAccessState get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendEnum(requestInfo, errorMapping, ShiftWorkCloudPcAccessState::forValue); - } - /** - * Get the shiftWorkCloudPcAccessState of a shift work Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest shift work Cloud PC accessState and determine whether the shift work Cloud PC is accessible to the user. If a web client needs to connect to a shift work Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState is not active/activating/standbyMode, the web client shows a 'bad bookmark'. - * @return a {@link RequestInformation} - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the shiftWorkCloudPcAccessState of a shift work Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest shift work Cloud PC accessState and determine whether the shift work Cloud PC is accessible to the user. If a web client needs to connect to a shift work Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState is not active/activating/standbyMode, the web client shows a 'bad bookmark'. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation 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 GetShiftWorkCloudPcAccessStateRequestBuilder} - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - */ - @jakarta.annotation.Nonnull - @Deprecated - public GetShiftWorkCloudPcAccessStateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetShiftWorkCloudPcAccessStateRequestBuilder(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/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsGetResponse.java new file mode 100644 index 00000000000..9d29aa11e77 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.retrievecloudpcremoteactionresults; + +import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.beta.models.CloudPcRemoteActionResult; +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 RetrieveCloudPCRemoteActionResultsGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link RetrieveCloudPCRemoteActionResultsGetResponse} and sets the default values. + */ + public RetrieveCloudPCRemoteActionResultsGetResponse() { + 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 RetrieveCloudPCRemoteActionResultsGetResponse} + */ + @jakarta.annotation.Nonnull + public static RetrieveCloudPCRemoteActionResultsGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RetrieveCloudPCRemoteActionResultsGetResponse(); + } + /** + * 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(CloudPcRemoteActionResult::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/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsRequestBuilder.java new file mode 100644 index 00000000000..d7b9544f143 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsRequestBuilder.java @@ -0,0 +1,148 @@ +package com.microsoft.graph.beta.devicemanagement.virtualendpoint.cloudpcs.item.retrievecloudpcremoteactionresults; + +import com.microsoft.graph.beta.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 retrieveCloudPCRemoteActionResults method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RetrieveCloudPCRemoteActionResultsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RetrieveCloudPCRemoteActionResultsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RetrieveCloudPCRemoteActionResultsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/retrieveCloudPCRemoteActionResults(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link RetrieveCloudPCRemoteActionResultsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RetrieveCloudPCRemoteActionResultsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/retrieveCloudPCRemoteActionResults(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + * @return a {@link RetrieveCloudPCRemoteActionResultsGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public RetrieveCloudPCRemoteActionResultsGetResponse get() { + return get(null); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RetrieveCloudPCRemoteActionResultsGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public RetrieveCloudPCRemoteActionResultsGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, RetrieveCloudPCRemoteActionResultsGetResponse::createFromDiscriminatorValue); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 RetrieveCloudPCRemoteActionResultsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RetrieveCloudPCRemoteActionResultsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RetrieveCloudPCRemoteActionResultsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + */ + @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; + /** + * 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); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/SharedUseServicePlansRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/SharedUseServicePlansRequestBuilder.java deleted file mode 100644 index 9157195f611..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/SharedUseServicePlansRequestBuilder.java +++ /dev/null @@ -1,278 +0,0 @@ -package com.microsoft.graph.beta.devicemanagement.virtualendpoint.shareduseserviceplans; - -import com.microsoft.graph.beta.devicemanagement.virtualendpoint.shareduseserviceplans.count.CountRequestBuilder; -import com.microsoft.graph.beta.devicemanagement.virtualendpoint.shareduseserviceplans.item.CloudPcSharedUseServicePlanItemRequestBuilder; -import com.microsoft.graph.beta.models.CloudPcSharedUseServicePlan; -import com.microsoft.graph.beta.models.CloudPcSharedUseServicePlanCollectionResponse; -import com.microsoft.graph.beta.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 sharedUseServicePlans property of the microsoft.graph.virtualEndpoint entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SharedUseServicePlansRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @Deprecated - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the sharedUseServicePlans property of the microsoft.graph.virtualEndpoint entity. - * @param cloudPcSharedUseServicePlanId The unique identifier of cloudPcSharedUseServicePlan - * @return a {@link CloudPcSharedUseServicePlanItemRequestBuilder} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public CloudPcSharedUseServicePlanItemRequestBuilder byCloudPcSharedUseServicePlanId(@jakarta.annotation.Nonnull final String cloudPcSharedUseServicePlanId) { - Objects.requireNonNull(cloudPcSharedUseServicePlanId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("cloudPcSharedUseServicePlan%2Did", cloudPcSharedUseServicePlanId); - return new CloudPcSharedUseServicePlanItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link SharedUseServicePlansRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SharedUseServicePlansRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/sharedUseServicePlans{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SharedUseServicePlansRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SharedUseServicePlansRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/sharedUseServicePlans{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get a list of the cloudPcSharedUseServicePlan objects and their properties. - * @return a {@link CloudPcSharedUseServicePlanCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - * @see Find more info here - */ - @jakarta.annotation.Nullable - @Deprecated - public CloudPcSharedUseServicePlanCollectionResponse get() { - return get(null); - } - /** - * Get a list of the cloudPcSharedUseServicePlan objects and their properties. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CloudPcSharedUseServicePlanCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - * @see Find more info here - */ - @jakarta.annotation.Nullable - @Deprecated - public CloudPcSharedUseServicePlanCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CloudPcSharedUseServicePlanCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to sharedUseServicePlans for deviceManagement - * @param body The request body - * @return a {@link CloudPcSharedUseServicePlan} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nullable - @Deprecated - public CloudPcSharedUseServicePlan post(@jakarta.annotation.Nonnull final CloudPcSharedUseServicePlan body) { - return post(body, null); - } - /** - * Create new navigation property to sharedUseServicePlans for deviceManagement - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CloudPcSharedUseServicePlan} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nullable - @Deprecated - public CloudPcSharedUseServicePlan post(@jakarta.annotation.Nonnull final CloudPcSharedUseServicePlan body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CloudPcSharedUseServicePlan::createFromDiscriminatorValue); - } - /** - * Get a list of the cloudPcSharedUseServicePlan objects and their properties. - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get a list of the cloudPcSharedUseServicePlan objects and their properties. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 sharedUseServicePlans for deviceManagement - * @param body The request body - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcSharedUseServicePlan body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to sharedUseServicePlans for deviceManagement - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final CloudPcSharedUseServicePlan body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link SharedUseServicePlansRequestBuilder} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public SharedUseServicePlansRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SharedUseServicePlansRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get a list of the cloudPcSharedUseServicePlan objects and their properties. - */ - @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/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/count/CountRequestBuilder.java deleted file mode 100644 index 2a1b1a549f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/count/CountRequestBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.microsoft.graph.beta.devicemanagement.virtualendpoint.shareduseserviceplans.count; - -import com.microsoft.graph.beta.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}/deviceManagement/virtualEndpoint/sharedUseServicePlans/$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}/deviceManagement/virtualEndpoint/sharedUseServicePlans/$count{?%24filter,%24search}", rawUrl); - } - /** - * Get the number of the resource - * @return a {@link Integer} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nullable - @Deprecated - 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 - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nullable - @Deprecated - 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} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - 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} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.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} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - 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/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/item/CloudPcSharedUseServicePlanItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/item/CloudPcSharedUseServicePlanItemRequestBuilder.java deleted file mode 100644 index 0f6f3081d6f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/devicemanagement/virtualendpoint/shareduseserviceplans/item/CloudPcSharedUseServicePlanItemRequestBuilder.java +++ /dev/null @@ -1,269 +0,0 @@ -package com.microsoft.graph.beta.devicemanagement.virtualendpoint.shareduseserviceplans.item; - -import com.microsoft.graph.beta.models.CloudPcSharedUseServicePlan; -import com.microsoft.graph.beta.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 sharedUseServicePlans property of the microsoft.graph.virtualEndpoint entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CloudPcSharedUseServicePlanItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CloudPcSharedUseServicePlanItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CloudPcSharedUseServicePlanItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/sharedUseServicePlans/{cloudPcSharedUseServicePlan%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CloudPcSharedUseServicePlanItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CloudPcSharedUseServicePlanItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint/sharedUseServicePlans/{cloudPcSharedUseServicePlan%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property sharedUseServicePlans for deviceManagement - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @Deprecated - public void delete() { - delete(null); - } - /** - * Delete navigation property sharedUseServicePlans for deviceManagement - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @Deprecated - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Read the properties and relationships of a cloudPcSharedUseServicePlan object. - * @return a {@link CloudPcSharedUseServicePlan} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - * @see Find more info here - */ - @jakarta.annotation.Nullable - @Deprecated - public CloudPcSharedUseServicePlan get() { - return get(null); - } - /** - * Read the properties and relationships of a cloudPcSharedUseServicePlan object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CloudPcSharedUseServicePlan} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - * @see Find more info here - */ - @jakarta.annotation.Nullable - @Deprecated - public CloudPcSharedUseServicePlan get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CloudPcSharedUseServicePlan::createFromDiscriminatorValue); - } - /** - * Update the navigation property sharedUseServicePlans in deviceManagement - * @param body The request body - * @return a {@link CloudPcSharedUseServicePlan} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nullable - @Deprecated - public CloudPcSharedUseServicePlan patch(@jakarta.annotation.Nonnull final CloudPcSharedUseServicePlan body) { - return patch(body, null); - } - /** - * Update the navigation property sharedUseServicePlans in deviceManagement - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link CloudPcSharedUseServicePlan} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nullable - @Deprecated - public CloudPcSharedUseServicePlan patch(@jakarta.annotation.Nonnull final CloudPcSharedUseServicePlan body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, CloudPcSharedUseServicePlan::createFromDiscriminatorValue); - } - /** - * Delete navigation property sharedUseServicePlans for deviceManagement - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property sharedUseServicePlans for deviceManagement - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Read the properties and relationships of a cloudPcSharedUseServicePlan object. - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Read the properties and relationships of a cloudPcSharedUseServicePlan object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property sharedUseServicePlans in deviceManagement - * @param body The request body - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcSharedUseServicePlan body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property sharedUseServicePlans in deviceManagement - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final CloudPcSharedUseServicePlan body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link CloudPcSharedUseServicePlanItemRequestBuilder} - * @deprecated - * The sharedUseServicePlans property is deprecated and will not be supported starting Oct 8, 2023. This property will not be included as part of the API response. as of 2023-03/sharedUseServicePlans - */ - @jakarta.annotation.Nonnull - @Deprecated - public CloudPcSharedUseServicePlanItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CloudPcSharedUseServicePlanItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Read the properties and relationships of a cloudPcSharedUseServicePlan object. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devices/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devices/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 279f7b9383a..a7766520eab 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devices/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devices/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/devices/{device%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/devices/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/devices/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..2801742b7a3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/devices/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.devices.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/devices/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/devices/item/restore/RestoreRequestBuilder.java index 3e5eb91a1cc..27c7510e72f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/devices/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/devices/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 1d492638df6..a3358dde482 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..8961fe2c99c --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.directory.deleteditems.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/directory/deleteditems/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/restore/RestoreRequestBuilder.java index bc548b6f253..ef9595eb213 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directory/deleteditems/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/getmembergroups/GetMemberGroupsRequestBuilder.java index af930bd8095..613cf8c7672 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directoryObjects/{directoryObject%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..b98828eace7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.directoryobjects.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/directoryobjects/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/restore/RestoreRequestBuilder.java index c1f3a77a310..2567eb08484 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryobjects/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 21936c7b335..07868f142bf 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..9cc8641a058 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.directoryroles.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/directoryroles/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/restore/RestoreRequestBuilder.java index 9317dc7ccf2..3911daf96a7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryroles/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 6ad0991486f..133b1ea40c7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..8a32c2597a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.directoryroletemplates.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/directoryroletemplates/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/restore/RestoreRequestBuilder.java index 232eb881106..1e3f1755602 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directoryroletemplates/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java index e0fa5d6019e..8142612adde 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/directorySettingTemplates/{directorySettingTemplate%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..fb0c8d4a1aa --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.directorysettingtemplates.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/directorysettingtemplates/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/restore/RestoreRequestBuilder.java index 6b4e75ed104..7970b285057 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/directorysettingtemplates/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/DriveItemItemRequestBuilder.java index 589d19a2ff8..e751fd0c505 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/DriveItemItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/DriveItemItemRequestBuilder.java @@ -14,6 +14,7 @@ import com.microsoft.graph.beta.drives.item.items.item.createuploadsession.CreateUploadSessionRequestBuilder; import com.microsoft.graph.beta.drives.item.items.item.delta.DeltaRequestBuilder; import com.microsoft.graph.beta.drives.item.items.item.deltawithtoken.DeltaWithTokenRequestBuilder; +import com.microsoft.graph.beta.drives.item.items.item.discardcheckout.DiscardCheckoutRequestBuilder; import com.microsoft.graph.beta.drives.item.items.item.extractsensitivitylabels.ExtractSensitivityLabelsRequestBuilder; import com.microsoft.graph.beta.drives.item.items.item.follow.FollowRequestBuilder; import com.microsoft.graph.beta.drives.item.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; @@ -156,6 +157,14 @@ public CreateUploadSessionRequestBuilder createUploadSession() { public DeltaRequestBuilder delta() { return new DeltaRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the discardCheckout method. + * @return a {@link DiscardCheckoutRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DiscardCheckoutRequestBuilder discardCheckout() { + return new DiscardCheckoutRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the extractSensitivityLabels method. * @return a {@link ExtractSensitivityLabelsRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/discardcheckout/DiscardCheckoutRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/discardcheckout/DiscardCheckoutRequestBuilder.java new file mode 100644 index 00000000000..233d48e6b83 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/discardcheckout/DiscardCheckoutRequestBuilder.java @@ -0,0 +1,93 @@ +package com.microsoft.graph.beta.drives.item.items.item.discardcheckout; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the discardCheckout method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DiscardCheckoutRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link DiscardCheckoutRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DiscardCheckoutRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/discardCheckout", pathParameters); + } + /** + * Instantiates a new {@link DiscardCheckoutRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DiscardCheckoutRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/discardCheckout", rawUrl); + } + /** + * Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void post() { + post(null); + } + /** + * Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions. + * @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); + } + /** + * Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Discard the check out of a driveItem. This action releases a driveItem resource that was previously checked out. Any changes made to the item while it was checked out are discarded. The same user that performed the checkout must discard it. Another alternative is to use application permissions. + * @param requestConfiguration 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 DiscardCheckoutRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DiscardCheckoutRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DiscardCheckoutRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/retentionlabel/RetentionLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/retentionlabel/RetentionLabelRequestBuilder.java index 3a83f4a240a..2722d4b4840 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/retentionlabel/RetentionLabelRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/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/beta/generated/drives/item/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java index cba5aa6497d..764801b699e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java @@ -60,7 +60,7 @@ public RepliesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link WorkbookCommentReplyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public WorkbookCommentReplyCollectionResponse get() { return get(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookCommentReplyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public WorkbookCommentReply post(@jakarta.annotation.Nonnull final WorkbookComme return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentReply::createFromDiscriminatorValue); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public RepliesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new RepliesRequestBuilder(rawUrl, requestAdapter); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java index be91aa7736c..9f17e1d4699 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link WorkbookCommentReply} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookCommentReply get() { return get(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookCommentReply} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookCommentReplyItemRequestBuilder withUrl(@jakarta.annotation.Nonnul public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java index 55e4993b8ea..25bcb389ef1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java @@ -60,7 +60,7 @@ public RepliesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link WorkbookCommentReplyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public WorkbookCommentReplyCollectionResponse get() { return get(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookCommentReplyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public WorkbookCommentReply post(@jakarta.annotation.Nonnull final WorkbookComme return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentReply::createFromDiscriminatorValue); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public RepliesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new RepliesRequestBuilder(rawUrl, requestAdapter); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java index a5fb999c7aa..469f34c96fa 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link WorkbookCommentReply} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookCommentReply get() { return get(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookCommentReply} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookCommentReplyItemRequestBuilder withUrl(@jakarta.annotation.Nonnul public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java index 6efc0a75066..ff3fa6a9183 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/names/item/range/RangeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/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/beta/generated/drives/item/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java index 3d3a3511c07..e9706c8a5ab 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java @@ -37,7 +37,7 @@ public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", rawUrl); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public WorkbookWorksheet get() { return get(null); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.functi return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new WorksheetRequestBuilder(rawUrl, requestAdapter); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/add/AddRequestBuilder.java index 4ea477e805c..331903a71aa 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/add/AddRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/add/AddRequestBuilder.java @@ -36,23 +36,23 @@ public AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakar super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add", rawUrl); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + * 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 + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { return post(body, null); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + * 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 + * @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) { @@ -63,7 +63,7 @@ public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody b return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + * Use this API to create a new Table. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + * 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} diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java index fc151475c9a..3fb4474ccac 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java @@ -70,7 +70,7 @@ public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableColumnCollectionResponse get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableC return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new ColumnsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java index ba20fec9e2e..80754462a81 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java @@ -100,7 +100,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumn} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -109,7 +109,7 @@ public WorkbookTableColumn get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumn} * @throws ODataError When receiving a 4XX or 5XX status code @@ -167,7 +167,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -175,7 +175,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -227,7 +227,7 @@ public WorkbookTableColumnItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java index 558631b8ad2..e2f4d3624d8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java @@ -163,7 +163,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -172,7 +172,7 @@ public WorkbookFilter get() { return get(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code @@ -230,7 +230,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -238,7 +238,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -290,7 +290,7 @@ public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java index d1cdd4b931c..15575e29c9a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookFilter get() { return get(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java index 12cf6a1fbb5..da99388281b 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/rows/RowsRequestBuilder.java @@ -70,7 +70,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableRowCollectionResponse get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new RowsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java index c407164a1d9..0ef72c7abf9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRow} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookTableRow get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRow} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookTableRowItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/sort/SortRequestBuilder.java index ad88468d10a..7443f9de505 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/sort/SortRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/item/sort/SortRequestBuilder.java @@ -82,7 +82,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -91,7 +91,7 @@ public WorkbookTableSort get() { return get(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code @@ -149,7 +149,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java index d7c165d521e..af08c473b25 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java @@ -38,7 +38,7 @@ public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookTableColumnCollectionResponse get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableC return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new ColumnsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java index 0c566c775f8..73cb886f8e8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java @@ -38,7 +38,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookTableRowCollectionResponse get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new RowsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java index 28b8ead8306..5bc88cc4ba7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookTableSort get() { return get(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java index 743a21e728f..75bed75ad9f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java @@ -71,7 +71,7 @@ public ChartsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @return a {@link WorkbookChartCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -80,7 +80,7 @@ public WorkbookChartCollectionResponse get() { return get(null); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -138,7 +138,7 @@ public WorkbookChart post(@jakarta.annotation.Nonnull final WorkbookChart body, return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChart::createFromDiscriminatorValue); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -146,7 +146,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -192,7 +192,7 @@ public ChartsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new ChartsRequestBuilder(rawUrl, requestAdapter); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java index ce233d71186..9247ec57f34 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java @@ -148,7 +148,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @return a {@link WorkbookChart} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -157,7 +157,7 @@ public WorkbookChart get() { return get(null); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChart} * @throws ODataError When receiving a 4XX or 5XX status code @@ -251,7 +251,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -259,7 +259,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -311,7 +311,7 @@ public WorkbookChartItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Returns collection of charts that are part of the worksheet. Read-only. + * The list of charts that are part of the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java index 689a6499d74..e4c95fd6c6f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link WorkbookChartSeriesFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookChartSeriesFormat get() { return get(null); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartSeriesFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java index 05874b38506..9c079751927 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java @@ -61,7 +61,7 @@ public PointsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -70,7 +70,7 @@ public WorkbookChartPointCollectionResponse get() { return get(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -118,7 +118,7 @@ public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPo return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -126,7 +126,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -172,7 +172,7 @@ public PointsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new PointsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java index 4aa2c9348c6..72360a83f7e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link WorkbookChartPoint} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookChartPoint get() { return get(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPoint} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookChartPointItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java index 63d74d1df0d..783d4d1ad00 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @return a {@link WorkbookChartPointFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookChartPointFormat get() { return get(null); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java index 9d084fc26f4..320a834ca88 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @return a {@link WorkbookChartPointFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookChartPointFormat get() { return get(null); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Encapsulates the format properties chart point. Read-only. + * The format properties of the chart point. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java index e0bba32d9dc..1516ac9950f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link WorkbookChartSeriesFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookChartSeriesFormat get() { return get(null); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartSeriesFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * The formatting of a chart series, which includes fill and line formatting. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java index 5c5e9abceed..556c6ccc506 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java @@ -38,7 +38,7 @@ public PointsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookChartPointCollectionResponse get() { return get(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartPointCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookChartPoint post(@jakarta.annotation.Nonnull final WorkbookChartPo return this.requestAdapter.send(requestInfo, errorMapping, WorkbookChartPoint::createFromDiscriminatorValue); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public PointsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new PointsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all points in the series. Read-only. + * A collection of all points in the series. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java index 5b90e10214c..d053c000764 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. * @return a {@link WorkbookChartTitleFormat} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookChartTitleFormat get() { return get(null); } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookChartTitleFormat} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public FormatRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * The formatting of a chart title, which includes fill and font formatting. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java index 17f7f94df28..e6c43028083 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java @@ -78,7 +78,7 @@ public NamesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @return a {@link WorkbookNamedItemCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -87,7 +87,7 @@ public WorkbookNamedItemCollectionResponse get() { return get(null); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookNamedItemCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -125,7 +125,7 @@ public WorkbookNamedItem post(@jakarta.annotation.Nonnull final WorkbookNamedIte return this.requestAdapter.send(requestInfo, errorMapping, WorkbookNamedItem::createFromDiscriminatorValue); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -133,7 +133,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -179,7 +179,7 @@ public NamesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU return new NamesRequestBuilder(rawUrl, requestAdapter); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java index a77d09b1cc9..6d661f809e1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @return a {@link WorkbookNamedItem} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookNamedItem get() { return get(null); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookNamedItem} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public WorkbookNamedItemItemRequestBuilder withUrl(@jakarta.annotation.Nonnull f public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Returns collection of names that are associated with the worksheet. Read-only. + * The list of names that are associated with the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java index ee1ad7e8449..824de3c0844 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/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/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java index acd3d09631e..8b0bf2f2aa9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java @@ -37,7 +37,7 @@ public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", rawUrl); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public WorkbookWorksheet get() { return get(null); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.functi return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new WorksheetRequestBuilder(rawUrl, requestAdapter); } /** - * Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java index 006c7d148d2..109b2522ebb 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java @@ -69,7 +69,7 @@ public PivotTablesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @return a {@link WorkbookPivotTableCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -78,7 +78,7 @@ public WorkbookPivotTableCollectionResponse get() { return get(null); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookPivotTableCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -116,7 +116,7 @@ public WorkbookPivotTable post(@jakarta.annotation.Nonnull final WorkbookPivotTa return this.requestAdapter.send(requestInfo, errorMapping, WorkbookPivotTable::createFromDiscriminatorValue); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -124,7 +124,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -170,7 +170,7 @@ public PivotTablesRequestBuilder withUrl(@jakarta.annotation.Nonnull final Strin return new PivotTablesRequestBuilder(rawUrl, requestAdapter); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java index 4a12fc69048..7a6c9a6e6d0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @return a {@link WorkbookPivotTable} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookPivotTable get() { return get(null); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookPivotTable} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public WorkbookPivotTableItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Collection of PivotTables that are part of the worksheet. + * The list of piot tables that are part of the worksheet. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java index 6bef0af2602..84a114477a7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java @@ -37,7 +37,7 @@ public WorksheetRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%24expand,%24select}", rawUrl); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public WorkbookWorksheet get() { return get(null); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheet} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public WorkbookWorksheet get(@jakarta.annotation.Nullable final java.util.functi return this.requestAdapter.send(requestInfo, errorMapping, WorkbookWorksheet::createFromDiscriminatorValue); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public WorksheetRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new WorksheetRequestBuilder(rawUrl, requestAdapter); } /** - * The worksheet containing the current PivotTable. Read-only. + * The worksheet that contains the current pivot table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java index 375f0c9ebad..3505b23d937 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java @@ -73,7 +73,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. * @return a {@link WorkbookWorksheetProtection} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -82,7 +82,7 @@ public WorkbookWorksheetProtection get() { return get(null); } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookWorksheetProtection} * @throws ODataError When receiving a 4XX or 5XX status code @@ -140,7 +140,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -200,7 +200,7 @@ public ProtectionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Returns sheet protection object for a worksheet. Read-only. + * The sheet protection object for a worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java index 7227cdc1056..cb10d2c3914 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java @@ -70,7 +70,7 @@ public TablesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @return a {@link WorkbookTableCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableCollectionResponse get() { return get(null); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTable post(@jakarta.annotation.Nonnull final WorkbookTable body, return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public TablesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new TablesRequestBuilder(rawUrl, requestAdapter); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java index 1eff2c749f4..2b5f324c12d 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java @@ -36,23 +36,23 @@ public AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakar super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + * 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 + * @see Find more info here */ @jakarta.annotation.Nullable public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { return post(body, null); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + * 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 + * @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) { @@ -63,7 +63,7 @@ public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody b return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + * Use this API to create a new Table. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + * 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} diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java index dc2bd9194bd..c416d6c2fe0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java @@ -154,7 +154,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @return a {@link WorkbookTable} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -163,7 +163,7 @@ public WorkbookTable get() { return get(null); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTable} * @throws ODataError When receiving a 4XX or 5XX status code @@ -221,7 +221,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -229,7 +229,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -281,7 +281,7 @@ public WorkbookTableItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Collection of tables that are part of the worksheet. Read-only. + * The list of tables that are part of the worksheet. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java index 1529fad6bce..9bf1b8de44f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java @@ -70,7 +70,7 @@ public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableColumnCollectionResponse get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableC return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new ColumnsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java index 2ed93da69ac..877f0d01c6a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java @@ -100,7 +100,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumn} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -109,7 +109,7 @@ public WorkbookTableColumn get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumn} * @throws ODataError When receiving a 4XX or 5XX status code @@ -167,7 +167,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -175,7 +175,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -227,7 +227,7 @@ public WorkbookTableColumnItemRequestBuilder withUrl(@jakarta.annotation.Nonnull public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java index 329c196b0d7..c4bd4173458 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java @@ -163,7 +163,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -172,7 +172,7 @@ public WorkbookFilter get() { return get(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code @@ -230,7 +230,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -238,7 +238,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -290,7 +290,7 @@ public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java index f7fdc7152c7..6b571928a64 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookFilter get() { return get(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookFilter} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public FilterRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the filter applied to the column. Read-only. + * The filter applied to the column. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java index 3317d3fbe67..a9be9be3b18 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java @@ -70,7 +70,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -79,7 +79,7 @@ public WorkbookTableRowCollectionResponse get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -127,7 +127,7 @@ public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -135,7 +135,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -181,7 +181,7 @@ public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new RowsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java index 696d2d5174f..a85528c62d1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRow} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookTableRow get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRow} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookTableRowItemRequestBuilder withUrl(@jakarta.annotation.Nonnull fi public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java index d90732e7ebc..b82298fcaed 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java @@ -82,7 +82,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -91,7 +91,7 @@ public WorkbookTableSort get() { return get(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code @@ -149,7 +149,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java index 789ada88a71..725c579d89b 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java @@ -38,7 +38,7 @@ public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookTableColumnCollectionResponse get() { return get(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableColumnCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookTableColumn post(@jakarta.annotation.Nonnull final WorkbookTableC return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableColumn::createFromDiscriminatorValue); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new ColumnsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the columns in the table. Read-only. + * The list of all the columns in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java index 43213e83d16..bf3b862fcec 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java @@ -38,7 +38,7 @@ public RowsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jaka super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -47,7 +47,7 @@ public WorkbookTableRowCollectionResponse get() { return get(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableRowCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -85,7 +85,7 @@ public WorkbookTableRow post(@jakarta.annotation.Nonnull final WorkbookTableRow return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTableRow::createFromDiscriminatorValue); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -93,7 +93,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -139,7 +139,7 @@ public RowsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr return new RowsRequestBuilder(rawUrl, requestAdapter); } /** - * Represents a collection of all the rows in the table. Read-only. + * The list of all the rows in the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java index e059f701787..f5c06a341cc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public WorkbookTableSort get() { return get(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookTableSort} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public SortRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUr public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Represents the sorting for the table. Read-only. + * The sorting for the table. Read-only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java index c1c66e2751b..b76f082c33f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java @@ -60,7 +60,7 @@ public RepliesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j super(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link WorkbookCommentReplyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public WorkbookCommentReplyCollectionResponse get() { return get(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookCommentReplyCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public WorkbookCommentReply post(@jakarta.annotation.Nonnull final WorkbookComme return this.requestAdapter.send(requestInfo, errorMapping, WorkbookCommentReply::createFromDiscriminatorValue); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public RepliesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String ra return new RepliesRequestBuilder(rawUrl, requestAdapter); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java index a3dcb1a859f..fa35c708666 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/drives/item/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link WorkbookCommentReply} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public WorkbookCommentReply get() { return get(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link WorkbookCommentReply} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public WorkbookCommentReplyItemRequestBuilder withUrl(@jakarta.annotation.Nonnul public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get replies from drives + * The list of replies to the comment. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/education/me/rubrics/item/EducationRubricItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/education/me/rubrics/item/EducationRubricItemRequestBuilder.java index 216d1a191a1..628637a7d17 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/education/me/rubrics/item/EducationRubricItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/education/me/rubrics/item/EducationRubricItemRequestBuilder.java @@ -81,7 +81,7 @@ public EducationRubric get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, EducationRubric::createFromDiscriminatorValue); } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it can't be updated. * @param body The request body * @return a {@link EducationRubric} * @throws ODataError When receiving a 4XX or 5XX status code @@ -92,7 +92,7 @@ public EducationRubric patch(@jakarta.annotation.Nonnull final EducationRubric b return patch(body, null); } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it can't be updated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link EducationRubric} @@ -148,7 +148,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it can't be updated. * @param body The request body * @return a {@link RequestInformation} */ @@ -157,7 +157,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it cannot be updated. + * Update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{id}/assignments/{id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{id}/assignments/{id}/rubric, but it can't be updated. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/employeeexperience/communities/CommunitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/employeeexperience/communities/CommunitiesRequestBuilder.java index ea1bb38049a..718a41c7ba8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/employeeexperience/communities/CommunitiesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/employeeexperience/communities/CommunitiesRequestBuilder.java @@ -60,19 +60,21 @@ public CommunitiesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/employeeExperience/communities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Read the properties and relationships of a community object. + * Get a list of the Viva Engage community objects and their properties. * @return a {@link CommunityCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public CommunityCollectionResponse get() { return get(null); } /** - * Read the properties and relationships of a community object. + * Get a list of the Viva Engage community objects and their properties. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CommunityCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public CommunityCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -109,7 +111,7 @@ public Community post(@jakarta.annotation.Nonnull final Community body, @jakarta return this.requestAdapter.send(requestInfo, errorMapping, Community::createFromDiscriminatorValue); } /** - * Read the properties and relationships of a community object. + * Get a list of the Viva Engage community objects and their properties. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -117,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties and relationships of a community object. + * Get a list of the Viva Engage community objects and their properties. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -163,7 +165,7 @@ public CommunitiesRequestBuilder withUrl(@jakarta.annotation.Nonnull final Strin return new CommunitiesRequestBuilder(rawUrl, requestAdapter); } /** - * Read the properties and relationships of a community object. + * Get a list of the Viva Engage community objects and their properties. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/employeeexperience/communities/item/CommunityItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/employeeexperience/communities/item/CommunityItemRequestBuilder.java index 10ca5b26283..e2318423243 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/employeeexperience/communities/item/CommunityItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/employeeexperience/communities/item/CommunityItemRequestBuilder.java @@ -55,16 +55,18 @@ public CommunityItemRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/employeeExperience/communities/{community%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete navigation property communities for employeeExperience + * Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups. * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ public void delete() { delete(null); } /** - * Delete navigation property communities for employeeExperience + * Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -97,21 +99,23 @@ public Community get(@jakarta.annotation.Nullable final java.util.function.Consu return this.requestAdapter.send(requestInfo, errorMapping, Community::createFromDiscriminatorValue); } /** - * Update the navigation property communities in employeeExperience + * Update the properties of an existing Viva Engage community. * @param body The request body * @return a {@link Community} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public Community patch(@jakarta.annotation.Nonnull final Community body) { return patch(body, null); } /** - * Update the navigation property communities in employeeExperience + * Update the properties of an existing Viva Engage community. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Community} * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here */ @jakarta.annotation.Nullable public Community patch(@jakarta.annotation.Nonnull final Community body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -122,7 +126,7 @@ public Community patch(@jakarta.annotation.Nonnull final Community body, @jakart return this.requestAdapter.send(requestInfo, errorMapping, Community::createFromDiscriminatorValue); } /** - * Delete navigation property communities for employeeExperience + * Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +134,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete navigation property communities for employeeExperience + * Delete a Viva Engage community along with all associated Microsoft 365 content, including the connected Microsoft 365 group, OneNote notebook, and Planner plans. For more information, see What happens if I delete a Viva Engage community connected to Microsoft 365 groups. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -162,7 +166,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the navigation property communities in employeeExperience + * Update the properties of an existing Viva Engage community. * @param body The request body * @return a {@link RequestInformation} */ @@ -171,7 +175,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the navigation property communities in employeeExperience + * Update the properties of an existing Viva Engage community. * @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/beta/generated/external/connections/item/items/item/ExternalItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/external/connections/item/items/item/ExternalItemItemRequestBuilder.java index e183f590ec2..02e806dfb7a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/external/connections/item/items/item/ExternalItemItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/external/connections/item/items/item/ExternalItemItemRequestBuilder.java @@ -99,23 +99,23 @@ public ExternalItem get(@jakarta.annotation.Nullable final java.util.function.Co return this.requestAdapter.send(requestInfo, errorMapping, ExternalItem::createFromDiscriminatorValue); } /** - * Update the properties of an externalitem. + * Create a new externalItem. This API can be used to create a custom item. The containing externalConnection must have a schema registered of the corresponding type. * @param body The request body * @return a {@link ExternalItem} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ExternalItem put(@jakarta.annotation.Nonnull final ExternalItem body) { return put(body, null); } /** - * Update the properties of an externalitem. + * Create a new externalItem. This API can be used to create a custom item. The containing externalConnection must have a schema registered of the corresponding type. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ExternalItem} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public ExternalItem put(@jakarta.annotation.Nonnull final ExternalItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -166,7 +166,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of an externalitem. + * Create a new externalItem. This API can be used to create a custom item. The containing externalConnection must have a schema registered of the corresponding type. * @param body The request body * @return a {@link RequestInformation} */ @@ -175,7 +175,7 @@ public RequestInformation toPutRequestInformation(@jakarta.annotation.Nonnull fi return toPutRequestInformation(body, null); } /** - * Update the properties of an externalitem. + * Create a new externalItem. This API can be used to create a custom item. The containing externalConnection must have a schema registered of the corresponding type. * @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/beta/generated/external/connections/item/schema/SchemaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/external/connections/item/schema/SchemaRequestBuilder.java index 05701d147cd..0aee76cfb16 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/external/connections/item/schema/SchemaRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/external/connections/item/schema/SchemaRequestBuilder.java @@ -61,23 +61,23 @@ public Schema get(@jakarta.annotation.Nullable final java.util.function.Consumer return this.requestAdapter.send(requestInfo, errorMapping, Schema::createFromDiscriminatorValue); } /** - * Update the properties of a schema for an externalConnection. + * Create a new or update an existing schema for a Microsoft Search connection. * @param body The request body * @return a {@link Schema} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Schema patch(@jakarta.annotation.Nonnull final Schema body) { return patch(body, null); } /** - * Update the properties of a schema for an externalConnection. + * Create a new or update an existing schema for a Microsoft Search connection. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Schema} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Schema patch(@jakarta.annotation.Nonnull final Schema body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +108,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a schema for an externalConnection. + * Create a new or update an existing schema for a Microsoft Search connection. * @param body The request body * @return a {@link RequestInformation} */ @@ -117,7 +117,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a schema for an externalConnection. + * Create a new or update an existing schema for a Microsoft Search connection. * @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/beta/generated/external/industrydata/dataconnectors/DataConnectorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/external/industrydata/dataconnectors/DataConnectorsRequestBuilder.java index 968f017efcc..ee0c87ba44e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/external/industrydata/dataconnectors/DataConnectorsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/external/industrydata/dataconnectors/DataConnectorsRequestBuilder.java @@ -84,23 +84,23 @@ public IndustryDataConnectorCollectionResponse get(@jakarta.annotation.Nullable return this.requestAdapter.send(requestInfo, errorMapping, IndustryDataConnectorCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new azureDataLakeConnector object. + * Create a new oneRosterApiDataConnector object. * @param body The request body * @return a {@link IndustryDataConnector} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public IndustryDataConnector post(@jakarta.annotation.Nonnull final IndustryDataConnector body) { return post(body, null); } /** - * Create a new azureDataLakeConnector object. + * Create a new oneRosterApiDataConnector object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link IndustryDataConnector} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public IndustryDataConnector post(@jakarta.annotation.Nonnull final IndustryDataConnector body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -131,7 +131,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new azureDataLakeConnector object. + * Create a new oneRosterApiDataConnector 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 azureDataLakeConnector object. + * Create a new oneRosterApiDataConnector object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/external/industrydata/inboundflows/item/InboundFlowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/external/industrydata/inboundflows/item/InboundFlowItemRequestBuilder.java index f8874058103..eb0ec7eb092 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/external/industrydata/inboundflows/item/InboundFlowItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/external/industrydata/inboundflows/item/InboundFlowItemRequestBuilder.java @@ -99,23 +99,23 @@ public InboundFlow get(@jakarta.annotation.Nullable final java.util.function.Con return this.requestAdapter.send(requestInfo, errorMapping, InboundFlow::createFromDiscriminatorValue); } /** - * Update the properties of an inboundApiFlow object. + * Update the properties of an inboundFileFlow object. * @param body The request body * @return a {@link InboundFlow} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InboundFlow patch(@jakarta.annotation.Nonnull final InboundFlow body) { return patch(body, null); } /** - * Update the properties of an inboundApiFlow object. + * Update the properties of an inboundFileFlow object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link InboundFlow} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public InboundFlow patch(@jakarta.annotation.Nonnull final InboundFlow body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -166,7 +166,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of an inboundApiFlow object. + * Update the properties of an inboundFileFlow object. * @param body The request body * @return a {@link RequestInformation} */ @@ -175,7 +175,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of an inboundApiFlow object. + * Update the properties of an inboundFileFlow object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/GroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/GroupsRequestBuilder.java index ae9adcbc3b1..cb2fd935ec2 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/GroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/GroupsRequestBuilder.java @@ -129,23 +129,23 @@ public GroupCollectionResponse get(@jakarta.annotation.Nullable final java.util. return this.requestAdapter.send(requestInfo, errorMapping, GroupCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Group post(@jakarta.annotation.Nonnull final Group body) { return post(body, null); } /** - * Create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Group} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Group post(@jakarta.annotation.Nonnull final Group body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -176,7 +176,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @param body The request body * @return a {@link RequestInformation} */ @@ -185,7 +185,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team. + * Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. * @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/beta/generated/groups/item/addfavorite/AddFavoriteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/addfavorite/AddFavoriteRequestBuilder.java index ed63cf8ac41..14a8fceb24d 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/addfavorite/AddFavoriteRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/addfavorite/AddFavoriteRequestBuilder.java @@ -35,7 +35,7 @@ public AddFavoriteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl super(requestAdapter, "{+baseurl}/groups/{group%2Did}/addFavorite", rawUrl); } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @@ -43,7 +43,7 @@ public void post() { post(null); } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -55,7 +55,7 @@ public void post(@jakarta.annotation.Nullable final java.util.function.Consumer< this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -63,7 +63,7 @@ public RequestInformation toPostRequestInformation() { return toPostRequestInformation(null); } /** - * Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. + * Add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/conversations/ConversationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/conversations/ConversationsRequestBuilder.java index d101eebe4fb..0d4a96e9fbd 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/conversations/ConversationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/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); } /** - * Create a new conversation by including a thread and a post. 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); } /** - * Create a new conversation by including a thread and a post. 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; } /** - * Create a new conversation by including a thread and a post. 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); } /** - * Create a new conversation by including a thread and a post. 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/beta/generated/groups/item/conversations/item/threads/item/reply/ReplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/conversations/item/threads/item/reply/ReplyRequestBuilder.java index a0a535579af..53b66403afc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/conversations/item/threads/item/reply/ReplyRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/conversations/item/threads/item/reply/ReplyRequestBuilder.java @@ -35,20 +35,20 @@ public ReplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", rawUrl); } /** - * 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. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body) { post(body, null); } /** - * 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. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); @@ -58,7 +58,7 @@ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body, @j this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * 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. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param body The request body * @return a {@link RequestInformation} */ @@ -67,7 +67,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * 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. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @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/beta/generated/groups/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 5c8d8d2b33d..55318f7bb64 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/groups/{group%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..08732401bd0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.groups.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/groups/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/restore/RestoreRequestBuilder.java index dabb85e8785..e49bc341833 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/SiteItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/SiteItemRequestBuilder.java index a420c0f1063..72dc7ee93d6 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/SiteItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/SiteItemRequestBuilder.java @@ -2,8 +2,10 @@ import com.microsoft.graph.beta.groups.item.sites.item.analytics.AnalyticsRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.columns.ColumnsRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.ContentModelsRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.contenttypes.ContentTypesRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.createdbyuser.CreatedByUserRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.documentprocessingjobs.DocumentProcessingJobsRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.drive.DriveRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.drives.DrivesRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.externalcolumns.ExternalColumnsRequestBuilder; @@ -57,6 +59,14 @@ public AnalyticsRequestBuilder analytics() { public ColumnsRequestBuilder columns() { return new ColumnsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the contentModels property of the microsoft.graph.site entity. + * @return a {@link ContentModelsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelsRequestBuilder contentModels() { + return new ContentModelsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. * @return a {@link ContentTypesRequestBuilder} @@ -73,6 +83,14 @@ public ContentTypesRequestBuilder contentTypes() { public CreatedByUserRequestBuilder createdByUser() { return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the documentProcessingJobs property of the microsoft.graph.site entity. + * @return a {@link DocumentProcessingJobsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobsRequestBuilder documentProcessingJobs() { + return new DocumentProcessingJobsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the drive property of the microsoft.graph.site entity. * @return a {@link DriveRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/ContentModelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/ContentModelsRequestBuilder.java new file mode 100644 index 00000000000..0ff469b5db1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/ContentModelsRequestBuilder.java @@ -0,0 +1,254 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels; + +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.count.CountRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.GetByNameWithModelNameRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.ContentModelItemRequestBuilder; +import com.microsoft.graph.beta.models.ContentModel; +import com.microsoft.graph.beta.models.ContentModelCollectionResponse; +import com.microsoft.graph.beta.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 contentModels property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContentModelsRequestBuilder 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 contentModels property of the microsoft.graph.site entity. + * @param contentModelId The unique identifier of contentModel + * @return a {@link ContentModelItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelItemRequestBuilder byContentModelId(@jakarta.annotation.Nonnull final String contentModelId) { + Objects.requireNonNull(contentModelId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("contentModel%2Did", contentModelId); + return new ContentModelItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ContentModelsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ContentModelsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The collection of content models applied to this site. + * @return a {@link ContentModelCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModelCollectionResponse get() { + return get(null); + } + /** + * The collection of content models applied to this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModelCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModelCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModelCollectionResponse::createFromDiscriminatorValue); + } + /** + * Provides operations to call the getByName method. + * @param modelName Usage: modelName='{modelName}' + * @return a {@link GetByNameWithModelNameRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetByNameWithModelNameRequestBuilder getByNameWithModelName(@jakarta.annotation.Nonnull final String modelName) { + Objects.requireNonNull(modelName); + return new GetByNameWithModelNameRequestBuilder(pathParameters, requestAdapter, modelName); + } + /** + * Create new navigation property to contentModels for groups + * @param body The request body + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel post(@jakarta.annotation.Nonnull final ContentModel body) { + return post(body, null); + } + /** + * Create new navigation property to contentModels for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel post(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * The collection of content models applied to this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The collection of content models applied to this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to contentModels for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentModel body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to contentModels for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ContentModelsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ContentModelsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The collection of content models applied to this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/count/CountRequestBuilder.java new file mode 100644 index 00000000000..3baa7395440 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.count; + +import com.microsoft.graph.beta.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}/groups/{group%2Did}/sites/{site%2Did}/contentModels/$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}/groups/{group%2Did}/sites/{site%2Did}/contentModels/$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/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/GetByNameWithModelNameRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/GetByNameWithModelNameRequestBuilder.java new file mode 100644 index 00000000000..b73722989b3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/GetByNameWithModelNameRequestBuilder.java @@ -0,0 +1,127 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname; + +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.addtodrive.AddToDriveRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.getapplieddrives.GetAppliedDrivesRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.removefromdrive.RemoveFromDriveRequestBuilder; +import com.microsoft.graph.beta.models.ContentModel; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getByName method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetByNameWithModelNameRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the addToDrive method. + * @return a {@link AddToDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddToDriveRequestBuilder addToDrive() { + return new AddToDriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the getAppliedDrives method. + * @return a {@link GetAppliedDrivesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAppliedDrivesRequestBuilder getAppliedDrives() { + return new GetAppliedDrivesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the removeFromDrive method. + * @return a {@link RemoveFromDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveFromDriveRequestBuilder removeFromDrive() { + return new RemoveFromDriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GetByNameWithModelNameRequestBuilder} and sets the default values. + * @param modelName Usage: modelName='{modelName}' + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetByNameWithModelNameRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String modelName) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')", pathParameters); + this.pathParameters.put("modelName", modelName); + } + /** + * Instantiates a new {@link GetByNameWithModelNameRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetByNameWithModelNameRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')", rawUrl); + } + /** + * Read the properties and relationships of a contentModel object by its model name. The name should be the full model filename, including the file extension; for example, exampleModel.classifier. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModel get() { + return get(null); + } + /** + * Read the properties and relationships of a contentModel object by its model name. The name should be the full model filename, including the file extension; for example, exampleModel.classifier. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModel get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * Read the properties and relationships of a contentModel object by its model name. The name should be the full model filename, including the file extension; for example, exampleModel.classifier. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a contentModel object by its model name. The name should be the full model filename, including the file extension; for example, exampleModel.classifier. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation 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 GetByNameWithModelNameRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetByNameWithModelNameRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetByNameWithModelNameRequestBuilder(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/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDrivePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDrivePostRequestBody.java new file mode 100644 index 00000000000..c0a599b0c5d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDrivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.addtodrive; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddToDrivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AddToDrivePostRequestBody} and sets the default values. + */ + public AddToDrivePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AddToDrivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static AddToDrivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AddToDrivePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the driveId property value. The driveId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("driveId", (n) -> { this.setDriveId(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("driveId", this.getDriveId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the driveId property value. The driveId property + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDriveRequestBuilder.java new file mode 100644 index 00000000000..00495a43ed7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDriveRequestBuilder.java @@ -0,0 +1,105 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.addtodrive; + +import com.microsoft.graph.beta.models.ContentModelUsage; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the addToDrive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddToDriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AddToDriveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddToDriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/addToDrive", pathParameters); + } + /** + * Instantiates a new {@link AddToDriveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddToDriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/addToDrive", rawUrl); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @return a {@link ContentModelUsage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModelUsage post(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body) { + return post(body, null); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModelUsage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModelUsage post(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModelUsage::createFromDiscriminatorValue); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AddToDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddToDriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AddToDriveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesGetResponse.java new file mode 100644 index 00000000000..9ea6fbd13e9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.getapplieddrives; + +import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.beta.models.ContentModelUsage; +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 GetAppliedDrivesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAppliedDrivesGetResponse} and sets the default values. + */ + public GetAppliedDrivesGetResponse() { + 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 GetAppliedDrivesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAppliedDrivesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAppliedDrivesGetResponse(); + } + /** + * 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(ContentModelUsage::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/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesRequestBuilder.java new file mode 100644 index 00000000000..d84ab31d55f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesRequestBuilder.java @@ -0,0 +1,148 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.getapplieddrives; + +import com.microsoft.graph.beta.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 getAppliedDrives method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAppliedDrivesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAppliedDrivesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAppliedDrivesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/getAppliedDrives(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAppliedDrivesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAppliedDrivesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/getAppliedDrives(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @return a {@link GetAppliedDrivesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetAppliedDrivesGetResponse get() { + return get(null); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAppliedDrivesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetAppliedDrivesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAppliedDrivesGetResponse::createFromDiscriminatorValue); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 GetAppliedDrivesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAppliedDrivesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAppliedDrivesRequestBuilder(rawUrl, requestAdapter); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + */ + @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; + /** + * 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); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDrivePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDrivePostRequestBody.java new file mode 100644 index 00000000000..a7465c943ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDrivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.removefromdrive; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveFromDrivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link RemoveFromDrivePostRequestBody} and sets the default values. + */ + public RemoveFromDrivePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RemoveFromDrivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static RemoveFromDrivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RemoveFromDrivePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the driveId property value. The driveId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("driveId", (n) -> { this.setDriveId(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("driveId", this.getDriveId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the driveId property value. The driveId property + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDriveRequestBuilder.java new file mode 100644 index 00000000000..7b9ea4199d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDriveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.getbynamewithmodelname.removefromdrive; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the removeFromDrive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveFromDriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RemoveFromDriveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveFromDriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/removeFromDrive", pathParameters); + } + /** + * Instantiates a new {@link RemoveFromDriveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveFromDriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/removeFromDrive", rawUrl); + } + /** + * Remove a contentModel from a SharePoint document library. + * @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 RemoveFromDrivePostRequestBody body) { + post(body, null); + } + /** + * Remove a contentModel from a SharePoint document library. + * @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 RemoveFromDrivePostRequestBody body, @jakarta.annotation.Nullable final 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); + } + /** + * Remove a contentModel from a SharePoint document library. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoveFromDrivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Remove a contentModel from a SharePoint document library. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoveFromDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RemoveFromDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveFromDriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RemoveFromDriveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/ContentModelItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/ContentModelItemRequestBuilder.java new file mode 100644 index 00000000000..1abfa0c0e63 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/ContentModelItemRequestBuilder.java @@ -0,0 +1,255 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item; + +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.addtodrive.AddToDriveRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.getapplieddrives.GetAppliedDrivesRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.removefromdrive.RemoveFromDriveRequestBuilder; +import com.microsoft.graph.beta.models.ContentModel; +import com.microsoft.graph.beta.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 contentModels property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContentModelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the addToDrive method. + * @return a {@link AddToDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddToDriveRequestBuilder addToDrive() { + return new AddToDriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the getAppliedDrives method. + * @return a {@link GetAppliedDrivesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAppliedDrivesRequestBuilder getAppliedDrives() { + return new GetAppliedDrivesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the removeFromDrive method. + * @return a {@link RemoveFromDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveFromDriveRequestBuilder removeFromDrive() { + return new RemoveFromDriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ContentModelItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/{contentModel%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ContentModelItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/{contentModel%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property contentModels for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property contentModels for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * The collection of content models applied to this site. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel get() { + return get(null); + } + /** + * The collection of content models applied to this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * Update the navigation property contentModels in groups + * @param body The request body + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel patch(@jakarta.annotation.Nonnull final ContentModel body) { + return patch(body, null); + } + /** + * Update the navigation property contentModels in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel patch(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * Delete navigation property contentModels for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property contentModels for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * The collection of content models applied to this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The collection of content models applied to this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property contentModels in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ContentModel body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property contentModels in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ContentModelItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ContentModelItemRequestBuilder(rawUrl, 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 models applied to this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/addtodrive/AddToDrivePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/addtodrive/AddToDrivePostRequestBody.java new file mode 100644 index 00000000000..12ff89b2295 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/addtodrive/AddToDrivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.addtodrive; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddToDrivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AddToDrivePostRequestBody} and sets the default values. + */ + public AddToDrivePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AddToDrivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static AddToDrivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AddToDrivePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the driveId property value. The driveId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("driveId", (n) -> { this.setDriveId(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("driveId", this.getDriveId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the driveId property value. The driveId property + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/addtodrive/AddToDriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/addtodrive/AddToDriveRequestBuilder.java new file mode 100644 index 00000000000..4e2afac7960 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/addtodrive/AddToDriveRequestBuilder.java @@ -0,0 +1,105 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.addtodrive; + +import com.microsoft.graph.beta.models.ContentModelUsage; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the addToDrive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddToDriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AddToDriveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddToDriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/{contentModel%2Did}/addToDrive", pathParameters); + } + /** + * Instantiates a new {@link AddToDriveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddToDriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/{contentModel%2Did}/addToDrive", rawUrl); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @return a {@link ContentModelUsage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModelUsage post(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body) { + return post(body, null); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModelUsage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModelUsage post(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModelUsage::createFromDiscriminatorValue); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AddToDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddToDriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AddToDriveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesGetResponse.java new file mode 100644 index 00000000000..62d27e98d21 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.getapplieddrives; + +import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.beta.models.ContentModelUsage; +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 GetAppliedDrivesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAppliedDrivesGetResponse} and sets the default values. + */ + public GetAppliedDrivesGetResponse() { + 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 GetAppliedDrivesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAppliedDrivesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAppliedDrivesGetResponse(); + } + /** + * 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(ContentModelUsage::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/beta/generated/groups/item/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesRequestBuilder.java new file mode 100644 index 00000000000..837edfa7004 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesRequestBuilder.java @@ -0,0 +1,148 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.getapplieddrives; + +import com.microsoft.graph.beta.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 getAppliedDrives method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAppliedDrivesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAppliedDrivesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAppliedDrivesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/{contentModel%2Did}/getAppliedDrives(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAppliedDrivesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAppliedDrivesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/{contentModel%2Did}/getAppliedDrives(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @return a {@link GetAppliedDrivesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetAppliedDrivesGetResponse get() { + return get(null); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAppliedDrivesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetAppliedDrivesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAppliedDrivesGetResponse::createFromDiscriminatorValue); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 GetAppliedDrivesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAppliedDrivesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAppliedDrivesRequestBuilder(rawUrl, requestAdapter); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + */ + @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; + /** + * 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); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/beta/generated/groups/item/sites/item/contentmodels/item/removefromdrive/RemoveFromDrivePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/removefromdrive/RemoveFromDrivePostRequestBody.java new file mode 100644 index 00000000000..22471819b1d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/removefromdrive/RemoveFromDrivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.removefromdrive; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveFromDrivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link RemoveFromDrivePostRequestBody} and sets the default values. + */ + public RemoveFromDrivePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RemoveFromDrivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static RemoveFromDrivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RemoveFromDrivePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the driveId property value. The driveId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("driveId", (n) -> { this.setDriveId(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("driveId", this.getDriveId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the driveId property value. The driveId property + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/removefromdrive/RemoveFromDriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/removefromdrive/RemoveFromDriveRequestBuilder.java new file mode 100644 index 00000000000..d8648a0b5c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/contentmodels/item/removefromdrive/RemoveFromDriveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.beta.groups.item.sites.item.contentmodels.item.removefromdrive; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the removeFromDrive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveFromDriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RemoveFromDriveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveFromDriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/{contentModel%2Did}/removeFromDrive", pathParameters); + } + /** + * Instantiates a new {@link RemoveFromDriveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveFromDriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/contentModels/{contentModel%2Did}/removeFromDrive", rawUrl); + } + /** + * Remove a contentModel from a SharePoint document library. + * @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 RemoveFromDrivePostRequestBody body) { + post(body, null); + } + /** + * Remove a contentModel from a SharePoint document library. + * @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 RemoveFromDrivePostRequestBody body, @jakarta.annotation.Nullable final 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); + } + /** + * Remove a contentModel from a SharePoint document library. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoveFromDrivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Remove a contentModel from a SharePoint document library. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoveFromDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RemoveFromDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveFromDriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RemoveFromDriveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java new file mode 100644 index 00000000000..7dc588155b3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java @@ -0,0 +1,243 @@ +package com.microsoft.graph.beta.groups.item.sites.item.documentprocessingjobs; + +import com.microsoft.graph.beta.groups.item.sites.item.documentprocessingjobs.count.CountRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.documentprocessingjobs.item.DocumentProcessingJobItemRequestBuilder; +import com.microsoft.graph.beta.models.DocumentProcessingJob; +import com.microsoft.graph.beta.models.DocumentProcessingJobCollectionResponse; +import com.microsoft.graph.beta.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 documentProcessingJobs property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DocumentProcessingJobsRequestBuilder 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 documentProcessingJobs property of the microsoft.graph.site entity. + * @param documentProcessingJobId The unique identifier of documentProcessingJob + * @return a {@link DocumentProcessingJobItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobItemRequestBuilder byDocumentProcessingJobId(@jakarta.annotation.Nonnull final String documentProcessingJobId) { + Objects.requireNonNull(documentProcessingJobId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("documentProcessingJob%2Did", documentProcessingJobId); + return new DocumentProcessingJobItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link DocumentProcessingJobsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/documentProcessingJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link DocumentProcessingJobsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/documentProcessingJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The document processing jobs running on this site. + * @return a {@link DocumentProcessingJobCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobCollectionResponse get() { + return get(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJobCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJobCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to documentProcessingJobs for groups + * @param body The request body + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob post(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return post(body, null); + } + /** + * Create new navigation property to documentProcessingJobs for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob post(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJob::createFromDiscriminatorValue); + } + /** + * The document processing jobs running on this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to documentProcessingJobs for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to documentProcessingJobs for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link DocumentProcessingJobsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DocumentProcessingJobsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The document processing jobs running on this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/documentprocessingjobs/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/documentprocessingjobs/count/CountRequestBuilder.java new file mode 100644 index 00000000000..bb8eca64260 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/documentprocessingjobs/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.beta.groups.item.sites.item.documentprocessingjobs.count; + +import com.microsoft.graph.beta.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}/groups/{group%2Did}/sites/{site%2Did}/documentProcessingJobs/$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}/groups/{group%2Did}/sites/{site%2Did}/documentProcessingJobs/$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/beta/generated/groups/item/sites/item/documentprocessingjobs/item/DocumentProcessingJobItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/documentprocessingjobs/item/DocumentProcessingJobItemRequestBuilder.java new file mode 100644 index 00000000000..597e8eeb6b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/documentprocessingjobs/item/DocumentProcessingJobItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.beta.groups.item.sites.item.documentprocessingjobs.item; + +import com.microsoft.graph.beta.models.DocumentProcessingJob; +import com.microsoft.graph.beta.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 documentProcessingJobs property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DocumentProcessingJobItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link DocumentProcessingJobItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/documentProcessingJobs/{documentProcessingJob%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link DocumentProcessingJobItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/documentProcessingJobs/{documentProcessingJob%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property documentProcessingJobs for groups + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property documentProcessingJobs for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * The document processing jobs running on this site. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob get() { + return get(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJob::createFromDiscriminatorValue); + } + /** + * Update the navigation property documentProcessingJobs in groups + * @param body The request body + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob patch(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return patch(body, null); + } + /** + * Update the navigation property documentProcessingJobs in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob patch(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJob::createFromDiscriminatorValue); + } + /** + * Delete navigation property documentProcessingJobs for groups + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property documentProcessingJobs for groups + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * The document processing jobs running on this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property documentProcessingJobs in groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property documentProcessingJobs in groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link DocumentProcessingJobItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DocumentProcessingJobItemRequestBuilder(rawUrl, 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 document processing jobs running on this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java index 1ce5989c6db..4ee84e94a2c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java @@ -2,14 +2,15 @@ import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.analytics.AnalyticsRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.columns.ColumnsRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.contentmodels.ContentModelsRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.contenttypes.ContentTypesRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.createdbyuser.CreatedByUserRequestBuilder; +import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.documentprocessingjobs.DocumentProcessingJobsRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.drive.DriveRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.drives.DrivesRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.externalcolumns.ExternalColumnsRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getapplicablecontenttypesforlistwithlistid.GetApplicableContentTypesForListWithListIdRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.GetByPathWithPath1RequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.informationprotection.InformationProtectionRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.items.ItemsRequestBuilder; import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; @@ -56,6 +57,14 @@ public AnalyticsRequestBuilder analytics() { public ColumnsRequestBuilder columns() { return new ColumnsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the contentModels property of the microsoft.graph.site entity. + * @return a {@link ContentModelsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelsRequestBuilder contentModels() { + return new ContentModelsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. * @return a {@link ContentTypesRequestBuilder} @@ -72,6 +81,14 @@ public ContentTypesRequestBuilder contentTypes() { public CreatedByUserRequestBuilder createdByUser() { return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the documentProcessingJobs property of the microsoft.graph.site entity. + * @return a {@link DocumentProcessingJobsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobsRequestBuilder documentProcessingJobs() { + return new DocumentProcessingJobsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the drive property of the microsoft.graph.site entity. * @return a {@link DriveRequestBuilder} @@ -248,16 +265,6 @@ public GetApplicableContentTypesForListWithListIdRequestBuilder getApplicableCon Objects.requireNonNull(listId); return new GetApplicableContentTypesForListWithListIdRequestBuilder(pathParameters, requestAdapter, listId); } - /** - * Provides operations to call the getByPath method. - * @param path1 Usage: path='{path1}' - * @return a {@link GetByPathWithPath1RequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetByPathWithPath1RequestBuilder getByPathWithPath1(@jakarta.annotation.Nonnull final String path1) { - Objects.requireNonNull(path1); - return new GetByPathWithPath1RequestBuilder(pathParameters, requestAdapter, path1); - } /** * Invoke function getByPath * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/contentmodels/ContentModelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/contentmodels/ContentModelsRequestBuilder.java new file mode 100644 index 00000000000..6804db070f5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/contentmodels/ContentModelsRequestBuilder.java @@ -0,0 +1,221 @@ +package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.contentmodels; + +import com.microsoft.graph.beta.models.ContentModel; +import com.microsoft.graph.beta.models.ContentModelCollectionResponse; +import com.microsoft.graph.beta.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 contentModels property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContentModelsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ContentModelsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/contentModels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ContentModelsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/contentModels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The collection of content models applied to this site. + * @return a {@link ContentModelCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModelCollectionResponse get() { + return get(null); + } + /** + * The collection of content models applied to this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModelCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModelCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModelCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to contentModels for groups + * @param body The request body + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel post(@jakarta.annotation.Nonnull final ContentModel body) { + return post(body, null); + } + /** + * Create new navigation property to contentModels for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel post(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * The collection of content models applied to this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The collection of content models applied to this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to contentModels for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentModel body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to contentModels for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ContentModelsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ContentModelsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The collection of content models applied to this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java new file mode 100644 index 00000000000..773ffe6a3e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java @@ -0,0 +1,221 @@ +package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.documentprocessingjobs; + +import com.microsoft.graph.beta.models.DocumentProcessingJob; +import com.microsoft.graph.beta.models.DocumentProcessingJobCollectionResponse; +import com.microsoft.graph.beta.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 documentProcessingJobs property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DocumentProcessingJobsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link DocumentProcessingJobsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/documentProcessingJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link DocumentProcessingJobsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/documentProcessingJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The document processing jobs running on this site. + * @return a {@link DocumentProcessingJobCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobCollectionResponse get() { + return get(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJobCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJobCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to documentProcessingJobs for groups + * @param body The request body + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob post(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return post(body, null); + } + /** + * Create new navigation property to documentProcessingJobs for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob post(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJob::createFromDiscriminatorValue); + } + /** + * The document processing jobs running on this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to documentProcessingJobs for groups + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to documentProcessingJobs for groups + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link DocumentProcessingJobsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DocumentProcessingJobsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The document processing jobs running on this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java deleted file mode 100644 index 346a5aa781e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java +++ /dev/null @@ -1,260 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1; - -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.contenttypes.ContentTypesRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.drive.DriveRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.drives.DrivesRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.externalcolumns.ExternalColumnsRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.informationprotection.InformationProtectionRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.items.ItemsRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lists.ListsRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.onenote.OnenoteRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.operations.OperationsRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.pages.PagesRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.recyclebin.RecycleBinRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.sites.SitesRequestBuilder; -import com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.termstore.TermStoreRequestBuilder; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Site; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to call the getByPath method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetByPathWithPath1RequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the analytics property of the microsoft.graph.site entity. - * @return a {@link AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder analytics() { - return new AnalyticsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.site entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - * @return a {@link ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder contentTypes() { - return new ContentTypesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder createdByUser() { - return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the drive property of the microsoft.graph.site entity. - * @return a {@link DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder drive() { - return new DriveRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the drives property of the microsoft.graph.site entity. - * @return a {@link DrivesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DrivesRequestBuilder drives() { - return new DrivesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - * @return a {@link ExternalColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExternalColumnsRequestBuilder externalColumns() { - return new ExternalColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the informationProtection property of the microsoft.graph.site entity. - * @return a {@link InformationProtectionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InformationProtectionRequestBuilder informationProtection() { - return new InformationProtectionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the items property of the microsoft.graph.site entity. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder items() { - return new ItemsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder lastModifiedByUser() { - return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lists property of the microsoft.graph.site entity. - * @return a {@link ListsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListsRequestBuilder lists() { - return new ListsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the onenote property of the microsoft.graph.site entity. - * @return a {@link OnenoteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OnenoteRequestBuilder onenote() { - return new OnenoteRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the operations property of the microsoft.graph.site entity. - * @return a {@link OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder operations() { - return new OperationsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the pages property of the microsoft.graph.site entity. - * @return a {@link PagesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PagesRequestBuilder pages() { - return new PagesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the permissions property of the microsoft.graph.site entity. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder permissions() { - return new PermissionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the recycleBin property of the microsoft.graph.site entity. - * @return a {@link RecycleBinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RecycleBinRequestBuilder recycleBin() { - return new RecycleBinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the sites property of the microsoft.graph.site entity. - * @return a {@link SitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SitesRequestBuilder sites() { - return new SitesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the termStore property of the microsoft.graph.site entity. - * @return a {@link TermStoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoreRequestBuilder termStore() { - return new TermStoreRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link GetByPathWithPath1RequestBuilder} and sets the default values. - * @param path1 Usage: path='{path1}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetByPathWithPath1RequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String path1) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", pathParameters); - this.pathParameters.put("path1", path1); - } - /** - * Instantiates a new {@link GetByPathWithPath1RequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetByPathWithPath1RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", rawUrl); - } - /** - * Invoke function getByPath - * @return a {@link Site} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Site get() { - return get(null); - } - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Site} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Site get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Site::createFromDiscriminatorValue); - } - /** - * Invoke function getByPath - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link GetByPathWithPath1RequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetByPathWithPath1RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetByPathWithPath1RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index 4035667a66f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.analytics; - -import com.microsoft.graph.beta.models.ItemAnalytics; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the analytics property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AnalyticsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AnalyticsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AnalyticsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property analytics for groups - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property analytics for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Analytics about the view activities that took place on this site. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get() { - return get(null); - } - /** - * Analytics about the view activities that took place on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Update the navigation property analytics in groups - * @param body The request body - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return patch(body, null); - } - /** - * Update the navigation property analytics in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Delete navigation property analytics for groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property analytics for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Analytics about the view activities that took place on this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Analytics about the view activities that took place on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property analytics in groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property analytics in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AnalyticsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Analytics about the view activities that took place on this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 201cca35210..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.columns; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the columns property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of column definitions reusable across lists under this site. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columns for groups - * @param body The request body - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return post(body, null); - } - /** - * Create new navigation property to columns for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * The collection of column definitions reusable across lists under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to columns for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of column definitions reusable across lists under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java deleted file mode 100644 index 0d16aa9691d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.contenttypes; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.ContentTypeCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentTypesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentTypesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ContentTypesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of content types defined for this site. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get() { - return get(null); - } - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentTypeCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body) { - return post(body, null); - } - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * The collection of content types defined for this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to contentTypes for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentTypesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of content types defined for this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index 13966febce5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get createdByUser from groups - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from groups - * @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); - } - /** - * Get createdByUser from groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser from groups - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and 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/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java deleted file mode 100644 index d578fd62e46..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.drive; - -import com.microsoft.graph.beta.models.Drive; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the drive property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DriveRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", rawUrl); - } - /** - * The default drive (document library) for this site. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get() { - return get(null); - } - /** - * The default drive (document library) for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); - } - /** - * The default drive (document library) for this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The default drive (document library) for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveRequestBuilder(rawUrl, requestAdapter); - } - /** - * The default drive (document library) for this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java deleted file mode 100644 index be373c0b2dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.drives; - -import com.microsoft.graph.beta.models.DriveCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the drives property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DrivesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DrivesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DrivesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link DrivesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DrivesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of drives (document libraries) under this site. - * @return a {@link DriveCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveCollectionResponse get() { - return get(null); - } - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of drives (document libraries) under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link DrivesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DrivesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DrivesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of drives (document libraries) under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java deleted file mode 100644 index 529577cbedc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.externalcolumns; - -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExternalColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ExternalColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExternalColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ExternalColumnsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExternalColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ExternalColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExternalColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ExternalColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/informationprotection/InformationProtectionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/informationprotection/InformationProtectionRequestBuilder.java deleted file mode 100644 index 63de0bca839..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/informationprotection/InformationProtectionRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.informationprotection; - -import com.microsoft.graph.beta.models.InformationProtection; -import com.microsoft.graph.beta.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 informationProtection property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class InformationProtectionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link InformationProtectionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public InformationProtectionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/informationProtection{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link InformationProtectionRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public InformationProtectionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/informationProtection{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property informationProtection for groups - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property informationProtection for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get informationProtection from groups - * @return a {@link InformationProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InformationProtection get() { - return get(null); - } - /** - * Get informationProtection from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InformationProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InformationProtection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, InformationProtection::createFromDiscriminatorValue); - } - /** - * Update the navigation property informationProtection in groups - * @param body The request body - * @return a {@link InformationProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InformationProtection patch(@jakarta.annotation.Nonnull final InformationProtection body) { - return patch(body, null); - } - /** - * Update the navigation property informationProtection in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InformationProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InformationProtection patch(@jakarta.annotation.Nonnull final InformationProtection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, InformationProtection::createFromDiscriminatorValue); - } - /** - * Delete navigation property informationProtection for groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property informationProtection for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get informationProtection from groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get informationProtection from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property informationProtection in groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final InformationProtection body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property informationProtection in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final InformationProtection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link InformationProtectionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InformationProtectionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new InformationProtectionRequestBuilder(rawUrl, 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 informationProtection from groups - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java deleted file mode 100644 index 563cb5bd325..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.items; - -import com.microsoft.graph.beta.models.BaseItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the items property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @return a {@link BaseItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseItemCollectionResponse get() { - return get(null); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 42b915ff92e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get lastModifiedByUser from groups - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from groups - * @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); - } - /** - * Get lastModifiedByUser from groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser from groups - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and 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/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java deleted file mode 100644 index 960386ed186..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.lists; - -import com.microsoft.graph.beta.models.List; -import com.microsoft.graph.beta.models.ListCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the lists property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ListsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ListsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ListsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of lists under this site. - * @return a {@link ListCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListCollectionResponse get() { - return get(null); - } - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to lists for groups - * @param body The request body - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List post(@jakarta.annotation.Nonnull final List body) { - return post(body, null); - } - /** - * Create new navigation property to lists for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List post(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, List::createFromDiscriminatorValue); - } - /** - * The collection of lists under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to lists for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final List body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to lists for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ListsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of lists under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java deleted file mode 100644 index 210b87abb98..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.onenote; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Onenote; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the onenote property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OnenoteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OnenoteRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OnenoteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link OnenoteRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OnenoteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property onenote for groups - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property onenote for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get onenote from groups - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote get() { - return get(null); - } - /** - * Get onenote from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Onenote::createFromDiscriminatorValue); - } - /** - * Update the navigation property onenote in groups - * @param body The request body - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote patch(@jakarta.annotation.Nonnull final Onenote body) { - return patch(body, null); - } - /** - * Update the navigation property onenote in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote patch(@jakarta.annotation.Nonnull final Onenote body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Onenote::createFromDiscriminatorValue); - } - /** - * Delete navigation property onenote for groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property onenote for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get onenote from groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get onenote from groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property onenote in groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Onenote body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property onenote in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Onenote body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link OnenoteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OnenoteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OnenoteRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Get onenote from groups - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java deleted file mode 100644 index 91bfcb267bd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.operations; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.RichLongRunningOperation; -import com.microsoft.graph.beta.models.RichLongRunningOperationCollectionResponse; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the operations property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OperationsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of long running operations for the site. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get() { - return get(null); - } - /** - * The collection of long running operations for the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperationCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to operations for groups - * @param body The request body - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return post(body, null); - } - /** - * Create new navigation property to operations for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperation::createFromDiscriminatorValue); - } - /** - * The collection of long running operations for the site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of long running operations for the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to operations for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to operations for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OperationsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of long running operations for the site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java deleted file mode 100644 index 6382befdb68..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.pages; - -import com.microsoft.graph.beta.models.BaseSitePage; -import com.microsoft.graph.beta.models.BaseSitePageCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the pages property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PagesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PagesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of pages in the baseSitePages list on this site. - * @return a {@link BaseSitePageCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePageCollectionResponse get() { - return get(null); - } - /** - * The collection of pages in the baseSitePages list on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseSitePageCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to pages for groups - * @param body The request body - * @return a {@link BaseSitePage} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { - return post(body, null); - } - /** - * Create new navigation property to pages for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseSitePage} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); - } - /** - * The collection of pages in the baseSitePages list on this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of pages in the baseSitePages list on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to pages for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to pages for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link PagesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PagesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of pages in the baseSitePages list on this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index 0cd1c8e2b28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.permissions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.models.PermissionCollectionResponse; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the permissions property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermissionsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PermissionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermissionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PermissionsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermissionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The permissions associated with the site. Nullable. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get() { - return get(null); - } - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, PermissionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body) { - return post(body, null); - } - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * The permissions associated with the site. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to permissions for groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PermissionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The permissions associated with the site. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/recyclebin/RecycleBinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/recyclebin/RecycleBinRequestBuilder.java deleted file mode 100644 index d7b28ad848f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/recyclebin/RecycleBinRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.recyclebin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.RecycleBin; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the recycleBin property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RecycleBinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RecycleBinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RecycleBinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/recycleBin{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link RecycleBinRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RecycleBinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/recycleBin{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property recycleBin for groups - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property recycleBin for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * A container for a collection of recycleBinItem resources in this site. - * @return a {@link RecycleBin} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RecycleBin get() { - return get(null); - } - /** - * A container for a collection of recycleBinItem resources in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RecycleBin} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RecycleBin get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RecycleBin::createFromDiscriminatorValue); - } - /** - * Update the navigation property recycleBin in groups - * @param body The request body - * @return a {@link RecycleBin} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RecycleBin patch(@jakarta.annotation.Nonnull final RecycleBin body) { - return patch(body, null); - } - /** - * Update the navigation property recycleBin in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RecycleBin} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RecycleBin patch(@jakarta.annotation.Nonnull final RecycleBin body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RecycleBin::createFromDiscriminatorValue); - } - /** - * Delete navigation property recycleBin for groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property recycleBin for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * A container for a collection of recycleBinItem resources in this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A container for a collection of recycleBinItem resources in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property recycleBin in groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final RecycleBin body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property recycleBin in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final RecycleBin body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RecycleBinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RecycleBinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RecycleBinRequestBuilder(rawUrl, 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 container for a collection of recycleBinItem resources in this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java deleted file mode 100644 index ce3a9bd4757..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.sites; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.SiteCollectionResponse; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the sites property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SitesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SitesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SitesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SitesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of the sub-sites under this site. - * @return a {@link SiteCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SiteCollectionResponse get() { - return get(null); - } - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SiteCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SiteCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SiteCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of the sub-sites under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link SitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SitesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SitesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of the sub-sites under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java deleted file mode 100644 index 4bc3f1e9798..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.groups.item.sites.item.getbypathwithpath.getbypathwithpath1.termstore; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.termstore.Store; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the termStore property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TermStoreRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TermStoreRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TermStoreRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TermStoreRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TermStoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property termStore for groups - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property termStore for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The termStore under this site. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store get() { - return get(null); - } - /** - * The termStore under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * Update the navigation property termStore in groups - * @param body The request body - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store patch(@jakarta.annotation.Nonnull final Store body) { - return patch(body, null); - } - /** - * Update the navigation property termStore in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store patch(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * Delete navigation property termStore for groups - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property termStore for groups - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The termStore under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The termStore under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property termStore in groups - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Store body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property termStore in groups - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TermStoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoreRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TermStoreRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The termStore under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/ConversationThreadItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/ConversationThreadItemRequestBuilder.java index 59f190e8b61..b2d52882801 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/ConversationThreadItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/ConversationThreadItemRequestBuilder.java @@ -75,21 +75,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * 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. + * Get a thread object. * @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 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. + * Get a thread object. * @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 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. + * Get a thread object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -154,7 +154,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * 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. + * Get a thread object. * @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 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. + * Get a thread object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/posts/item/extensions/item/ExtensionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/posts/item/extensions/item/ExtensionItemRequestBuilder.java index 6cf28ed315b..ddee024d090 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/posts/item/extensions/item/ExtensionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/posts/item/extensions/item/ExtensionItemRequestBuilder.java @@ -79,7 +79,7 @@ public Extension get(@jakarta.annotation.Nullable final java.util.function.Consu return this.requestAdapter.send(requestInfo, errorMapping, Extension::createFromDiscriminatorValue); } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. The operation behaves differently for resources that are directory objects vs other resources. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @return a {@link Extension} * @throws ODataError When receiving a 4XX or 5XX status code @@ -90,7 +90,7 @@ public Extension patch(@jakarta.annotation.Nonnull final Extension body) { return patch(body, null); } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. The operation behaves differently for resources that are directory objects vs other resources. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Extension} @@ -146,7 +146,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. The operation behaves differently for resources that are directory objects vs other resources. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @return a {@link RequestInformation} */ @@ -155,7 +155,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. + * Update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. The operation behaves differently for resources that are directory objects vs other resources. See the table in the Permissions section for the list of resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/reply/ReplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/reply/ReplyRequestBuilder.java index 87c1e46161c..5b3a74e21b3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/reply/ReplyRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/groups/item/threads/item/reply/ReplyRequestBuilder.java @@ -35,20 +35,20 @@ public ReplyRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jak super(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", rawUrl); } /** - * 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. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param body The request body * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body) { post(body, null); } /** - * 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. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { Objects.requireNonNull(body); @@ -58,7 +58,7 @@ public void post(@jakarta.annotation.Nonnull final ReplyPostRequestBody body, @j this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * 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. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @param body The request body * @return a {@link RequestInformation} */ @@ -67,7 +67,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * 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. + * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. * @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/beta/generated/identity/authenticationeventsflows/item/conditions/ConditionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/conditions/ConditionsRequestBuilder.java index 1d4d127c881..ff31121205d 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/conditions/ConditionsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/conditions/ConditionsRequestBuilder.java @@ -46,7 +46,7 @@ public ConditionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. * @return a {@link AuthenticationConditions} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -55,7 +55,7 @@ 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. * @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 @@ -68,7 +68,7 @@ public AuthenticationConditions get(@jakarta.annotation.Nullable final java.util 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -76,7 +76,7 @@ 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -98,7 +98,7 @@ public ConditionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java index 0710745807d..af4bc367578 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/conditions/applications/includeapplications/IncludeApplicationsRequestBuilder.java @@ -60,7 +60,7 @@ public IncludeApplicationsRequestBuilder(@jakarta.annotation.Nonnull final Strin super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/conditions/applications/includeApplications{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. + * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. * @return a {@link AuthenticationConditionApplicationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here @@ -70,7 +70,7 @@ public AuthenticationConditionApplicationCollectionResponse get() { return get(null); } /** - * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. + * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. * @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 @@ -84,7 +84,7 @@ public AuthenticationConditionApplicationCollectionResponse get(@jakarta.annotat return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditionApplicationCollectionResponse::createFromDiscriminatorValue); } /** - * Add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. + * Add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. The app must have an associated service principal in the tenant. * @param body The request body * @return a {@link AuthenticationConditionApplication} * @throws ODataError When receiving a 4XX or 5XX status code @@ -95,7 +95,7 @@ public AuthenticationConditionApplication post(@jakarta.annotation.Nonnull final return post(body, null); } /** - * Add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. + * Add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. The app must have an associated service principal 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 AuthenticationConditionApplication} @@ -111,7 +111,7 @@ public AuthenticationConditionApplication post(@jakarta.annotation.Nonnull final return this.requestAdapter.send(requestInfo, errorMapping, AuthenticationConditionApplication::createFromDiscriminatorValue); } /** - * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. + * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -119,7 +119,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. + * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. * @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; } /** - * Add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. + * Add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. The app must have an associated service principal in the tenant. * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +140,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. + * Add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. The app must have an associated service principal 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} @@ -165,7 +165,7 @@ public IncludeApplicationsRequestBuilder withUrl(@jakarta.annotation.Nonnull fin return new IncludeApplicationsRequestBuilder(rawUrl, requestAdapter); } /** - * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. + * List the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/ConditionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/ConditionsRequestBuilder.java index 263a2bcb57b..2d7cf88e9a7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/ConditionsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/conditions/ConditionsRequestBuilder.java @@ -46,7 +46,7 @@ public ConditionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. * @return a {@link AuthenticationConditions} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -55,7 +55,7 @@ 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. * @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 @@ -68,7 +68,7 @@ public AuthenticationConditions get(@jakarta.annotation.Nullable final java.util 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -76,7 +76,7 @@ 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -98,7 +98,7 @@ public ConditionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String 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. + * The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/ref/RefRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/ref/RefRequestBuilder.java index 51e45582290..73fe1d12786 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/ref/RefRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/item/ref/RefRequestBuilder.java @@ -35,18 +35,16 @@ public RefRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakar super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}/$ref", rawUrl); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * Delete ref of navigation property attributes for identity * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ public void delete() { delete(null); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * 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 - * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -55,7 +53,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * Delete ref of navigation property attributes for identity * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -63,7 +61,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * 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} */ diff --git a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/ref/RefRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/ref/RefRequestBuilder.java index 2a1d4f307c3..19a902e6d82 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/ref/RefRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onattributecollection/graphonattributecollectionexternalusersselfservicesignup/attributes/ref/RefRequestBuilder.java @@ -38,18 +38,16 @@ public RefRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakar super(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref?@id={%40id}{&%24count,%24filter,%24orderby,%24search,%24skip,%24top}", rawUrl); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * Delete ref of navigation property attributes for identity * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ public void delete() { delete(null); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * 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 - * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -105,7 +103,7 @@ public void post(@jakarta.annotation.Nonnull final ReferenceCreate body, @jakart this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * Delete ref of navigation property attributes for identity * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -113,7 +111,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * 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} */ @@ -179,7 +177,7 @@ public RefRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl return new RefRequestBuilder(rawUrl, requestAdapter); } /** - * Remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. + * Delete ref of navigation property attributes for identity */ @jakarta.annotation.Generated("com.microsoft.kiota") public class DeleteQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/OnAuthenticationMethodLoadStartRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/OnAuthenticationMethodLoadStartRequestBuilder.java index 597cc6156cf..46f7db84734 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/OnAuthenticationMethodLoadStartRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identity/authenticationeventsflows/item/graphexternalusersselfservicesignupeventsflow/onauthenticationmethodloadstart/OnAuthenticationMethodLoadStartRequestBuilder.java @@ -46,7 +46,7 @@ public OnAuthenticationMethodLoadStartRequestBuilder(@jakarta.annotation.Nonnull 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. * @return a {@link OnAuthenticationMethodLoadStartHandler} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -55,7 +55,7 @@ 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. * @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 @@ -68,7 +68,7 @@ public OnAuthenticationMethodLoadStartHandler get(@jakarta.annotation.Nullable f 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -76,7 +76,7 @@ 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -98,7 +98,7 @@ public OnAuthenticationMethodLoadStartRequestBuilder withUrl(@jakarta.annotation 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java index 614ebe23559..e25044878a8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identity/conditionalaccess/namedlocations/item/NamedLocationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/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 an ipNamedLocation object. + * Delete a namedLocation 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 an ipNamedLocation object. + * Delete a namedLocation 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 an ipNamedLocation object. + * Update the properties of a countryNamedLocation 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 an ipNamedLocation object. + * Update the properties of a countryNamedLocation 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 an ipNamedLocation object. + * Delete a namedLocation object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +116,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete an ipNamedLocation object. + * Delete a namedLocation 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 an ipNamedLocation object. + * Update the properties of a countryNamedLocation 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 ipNamedLocation object. + * Update the properties of a countryNamedLocation 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/beta/generated/identity/customauthenticationextensions/item/CustomAuthenticationExtensionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identity/customauthenticationextensions/item/CustomAuthenticationExtensionItemRequestBuilder.java index c339a4ca4c8..0fe9adad19f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identity/customauthenticationextensions/item/CustomAuthenticationExtensionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identity/customauthenticationextensions/item/CustomAuthenticationExtensionItemRequestBuilder.java @@ -66,21 +66,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. + * Read the properties and relationships of a customAuthenticationExtension object. * @return a {@link CustomAuthenticationExtension} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CustomAuthenticationExtension get() { return get(null); } /** - * Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. + * Read the properties and relationships of a customAuthenticationExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link CustomAuthenticationExtension} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public CustomAuthenticationExtension get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -135,7 +135,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. + * Read the properties and relationships of a customAuthenticationExtension object. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -143,7 +143,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. + * Read the properties and relationships of a customAuthenticationExtension object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -195,7 +195,7 @@ public CustomAuthenticationExtensionItemRequestBuilder withUrl(@jakarta.annotati public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. + * Read the properties and relationships of a customAuthenticationExtension object. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/entitlementmanagement/accesspackagecatalogs/item/accesspackagecustomworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/entitlementmanagement/accesspackagecatalogs/item/accesspackagecustomworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java index 2cd0acf0558..8ee861354e1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/entitlementmanagement/accesspackagecatalogs/item/accesspackagecustomworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/entitlementmanagement/accesspackagecatalogs/item/accesspackagecustomworkflowextensions/item/CustomCalloutExtensionItemRequestBuilder.java @@ -61,12 +61,12 @@ 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 * @deprecated * as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable @Deprecated @@ -74,13 +74,13 @@ 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 * @deprecated * as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable @Deprecated @@ -150,7 +150,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} * @deprecated * as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions @@ -161,7 +161,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} * @deprecated @@ -225,7 +225,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/beta/generated/identitygovernance/entitlementmanagement/accesspackagecatalogs/item/customaccesspackageworkflowextensions/item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/entitlementmanagement/accesspackagecatalogs/item/customaccesspackageworkflowextensions/item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.java index fabc003b827..6b59fa3ccc1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/entitlementmanagement/accesspackagecatalogs/item/customaccesspackageworkflowextensions/item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/entitlementmanagement/accesspackagecatalogs/item/customaccesspackageworkflowextensions/item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.java @@ -37,23 +37,23 @@ public CustomAccessPackageWorkflowExtensionItemRequestBuilder(@jakarta.annotatio super(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageCatalogs/{accessPackageCatalog%2Did}/customAccessPackageWorkflowExtensions/{customAccessPackageWorkflowExtension%2Did}{?%24expand,%24select}", rawUrl); } /** - * 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:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + * 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:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. * @throws ODataError When receiving a 4XX or 5XX status code * @deprecated * as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions - * @see Find more info here + * @see Find more info here */ @Deprecated public void delete() { delete(null); } /** - * 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:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + * 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:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code * @deprecated * as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions - * @see Find more info here + * @see Find more info here */ @Deprecated public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -126,7 +126,7 @@ public CustomAccessPackageWorkflowExtension patch(@jakarta.annotation.Nonnull fi return this.requestAdapter.send(requestInfo, errorMapping, CustomAccessPackageWorkflowExtension::createFromDiscriminatorValue); } /** - * 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:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + * 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:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. * @return a {@link RequestInformation} * @deprecated * as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions @@ -137,7 +137,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * 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:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + * 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:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} * @deprecated diff --git a/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/lifecycleworkflows/deleteditems/workflows/item/WorkflowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/lifecycleworkflows/deleteditems/workflows/item/WorkflowItemRequestBuilder.java index 561a89d0da2..74c6f13c573 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/lifecycleworkflows/deleteditems/workflows/item/WorkflowItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/lifecycleworkflows/deleteditems/workflows/item/WorkflowItemRequestBuilder.java @@ -138,7 +138,7 @@ public WorkflowItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUr /** * Delete a workflow object. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete() { delete(null); @@ -147,7 +147,7 @@ public void delete() { * Delete a workflow object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); diff --git a/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/termsofuse/agreements/item/AgreementItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/termsofuse/agreements/item/AgreementItemRequestBuilder.java index 306bf0cb964..0b9698d6fab 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/termsofuse/agreements/item/AgreementItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identitygovernance/termsofuse/agreements/item/AgreementItemRequestBuilder.java @@ -84,21 +84,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 an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @return a {@link Agreement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Agreement get() { return get(null); } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Agreement} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public Agreement get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -155,7 +155,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -163,7 +163,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -215,7 +215,7 @@ public AgreementItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final Str public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the properties and relationships of an agreement object. + * Retrieve all files related to an agreement. This includes the default file and all localized files. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/identityprotection/riskdetections/item/RiskDetectionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/identityprotection/riskdetections/item/RiskDetectionItemRequestBuilder.java index 8b665bac99f..68dc31ca98a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/identityprotection/riskdetections/item/RiskDetectionItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/identityprotection/riskdetections/item/RiskDetectionItemRequestBuilder.java @@ -55,21 +55,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. * @return a {@link RiskDetection} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RiskDetection get() { return get(null); } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RiskDetection} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RiskDetection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -124,7 +124,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -132,7 +132,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -184,7 +184,7 @@ public RiskDetectionItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AccessPackage.java b/src/main/java/com/microsoft/graph/beta/generated/models/AccessPackage.java index e10596aa925..23882d0e2e3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AccessPackage.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AccessPackage.java @@ -138,7 +138,7 @@ public java.util.List getIncompatibleGroups() { return this.backingStore.get("incompatibleGroups"); } /** - * Gets the isHidden property value. Whether the access package is hidden from the requestor. + * Gets the isHidden property value. Indicates whether the access package is hidden from the requestor. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -270,7 +270,7 @@ public void setIncompatibleGroups(@jakarta.annotation.Nullable final java.util.L this.backingStore.set("incompatibleGroups", value); } /** - * Sets the isHidden property value. Whether the access package is hidden from the requestor. + * Sets the isHidden property value. Indicates whether the access package is hidden from the requestor. * @param value Value to set for the isHidden property. */ public void setIsHidden(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource.java b/src/main/java/com/microsoft/graph/beta/generated/models/AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource.java index f82117856ce..9086ea77447 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource.java @@ -26,7 +26,7 @@ public static AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResou return new AccessReviewInstanceDecisionItemAccessPackageAssignmentPolicyResource(); } /** - * Gets the accessPackageDisplayName property value. Display name of the access package to which access has been granted. + * Gets the accessPackageDisplayName property value. Display name of the access package to which access is granted. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -34,7 +34,7 @@ public String getAccessPackageDisplayName() { return this.backingStore.get("accessPackageDisplayName"); } /** - * Gets the accessPackageId property value. Identifier of the access package to which access has been granted. + * Gets the accessPackageId property value. Identifier of the access package to which access is granted. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -63,14 +63,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("accessPackageId", this.getAccessPackageId()); } /** - * Sets the accessPackageDisplayName property value. Display name of the access package to which access has been granted. + * Sets the accessPackageDisplayName property value. Display name of the access package to which access is granted. * @param value Value to set for the accessPackageDisplayName property. */ public void setAccessPackageDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("accessPackageDisplayName", value); } /** - * Sets the accessPackageId property value. Identifier of the access package to which access has been granted. + * Sets the accessPackageId property value. Identifier of the access package to which access is granted. * @param value Value to set for the accessPackageId property. */ public void setAccessPackageId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AccessReviewInstanceDecisionItemServicePrincipalResource.java b/src/main/java/com/microsoft/graph/beta/generated/models/AccessReviewInstanceDecisionItemServicePrincipalResource.java index e803f1f67ae..9a05b84f0c1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AccessReviewInstanceDecisionItemServicePrincipalResource.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AccessReviewInstanceDecisionItemServicePrincipalResource.java @@ -26,7 +26,7 @@ public static AccessReviewInstanceDecisionItemServicePrincipalResource createFro return new AccessReviewInstanceDecisionItemServicePrincipalResource(); } /** - * Gets the appId property value. The globally unique identifier of the application to which access has been granted. + * Gets the appId property value. The globally unique identifier of the application to which access is granted. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -53,7 +53,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("appId", this.getAppId()); } /** - * Sets the appId property value. The globally unique identifier of the application to which access has been granted. + * Sets the appId property value. The globally unique identifier of the application to which access is granted. * @param value Value to set for the appId property. */ public void setAppId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AdminReportSettings.java b/src/main/java/com/microsoft/graph/beta/generated/models/AdminReportSettings.java index 1ef31bdac99..512f48baec8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AdminReportSettings.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AdminReportSettings.java @@ -25,7 +25,7 @@ public static AdminReportSettings createFromDiscriminatorValue(@jakarta.annotati return new AdminReportSettings(); } /** - * Gets the displayConcealedNames property value. If set to true, all reports will conceal user information such as usernames, groups, and sites. If false, all reports will show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. + * Gets the displayConcealedNames property value. If set to true, all reports conceal user information such as usernames, groups, and sites. If false, all reports show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -52,7 +52,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("displayConcealedNames", this.getDisplayConcealedNames()); } /** - * Sets the displayConcealedNames property value. If set to true, all reports will conceal user information such as usernames, groups, and sites. If false, all reports will show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. + * Sets the displayConcealedNames property value. If set to true, all reports conceal user information such as usernames, groups, and sites. If false, all reports show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. * @param value Value to set for the displayConcealedNames property. */ public void setDisplayConcealedNames(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppCredentialSignInActivity.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppCredentialSignInActivity.java index 633b24eda9a..9724d3dd5d8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AppCredentialSignInActivity.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppCredentialSignInActivity.java @@ -26,7 +26,7 @@ public static AppCredentialSignInActivity createFromDiscriminatorValue(@jakarta. return new AppCredentialSignInActivity(); } /** - * Gets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credential application. + * Gets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credentialed application. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -153,7 +153,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("signInActivity", this.getSignInActivity()); } /** - * Sets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credential application. + * Sets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credentialed application. * @param value Value to set for the appId property. */ public void setAppId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementApplicationConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementApplicationConfiguration.java new file mode 100644 index 00000000000..b4915502cb4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementApplicationConfiguration.java @@ -0,0 +1,45 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AppManagementApplicationConfiguration extends AppManagementConfiguration implements Parsable { + /** + * Instantiates a new {@link AppManagementApplicationConfiguration} and sets the default values. + */ + public AppManagementApplicationConfiguration() { + super(); + this.setOdataType("#microsoft.graph.appManagementApplicationConfiguration"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AppManagementApplicationConfiguration} + */ + @jakarta.annotation.Nonnull + public static AppManagementApplicationConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AppManagementApplicationConfiguration(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementConfiguration.java index e553db30837..e708219ae51 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementConfiguration.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementConfiguration.java @@ -32,6 +32,15 @@ public AppManagementConfiguration() { @jakarta.annotation.Nonnull public static AppManagementConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { Objects.requireNonNull(parseNode); + final ParseNode mappingValueNode = parseNode.getChildNode("@odata.type"); + if (mappingValueNode != null) { + final String mappingValue = mappingValueNode.getStringValue(); + switch (mappingValue) { + case "#microsoft.graph.appManagementApplicationConfiguration": return new AppManagementApplicationConfiguration(); + case "#microsoft.graph.appManagementServicePrincipalConfiguration": return new AppManagementServicePrincipalConfiguration(); + case "#microsoft.graph.customAppManagementConfiguration": return new CustomAppManagementConfiguration(); + } + } return new AppManagementConfiguration(); } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementPolicy.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementPolicy.java index b84cae4465d..cbcdd7b6aa0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementPolicy.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementPolicy.java @@ -42,7 +42,7 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("appliesTo", (n) -> { this.setAppliesTo(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); }); deserializerMap.put("isEnabled", (n) -> { this.setIsEnabled(n.getBooleanValue()); }); - deserializerMap.put("restrictions", (n) -> { this.setRestrictions(n.getObjectValue(AppManagementConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("restrictions", (n) -> { this.setRestrictions(n.getObjectValue(CustomAppManagementConfiguration::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -55,10 +55,10 @@ public Boolean getIsEnabled() { } /** * Gets the restrictions property value. Restrictions that apply to an application or service principal object. - * @return a {@link AppManagementConfiguration} + * @return a {@link CustomAppManagementConfiguration} */ @jakarta.annotation.Nullable - public AppManagementConfiguration getRestrictions() { + public CustomAppManagementConfiguration getRestrictions() { return this.backingStore.get("restrictions"); } /** @@ -90,7 +90,7 @@ public void setIsEnabled(@jakarta.annotation.Nullable final Boolean value) { * Sets the restrictions property value. Restrictions that apply to an application or service principal object. * @param value Value to set for the restrictions property. */ - public void setRestrictions(@jakarta.annotation.Nullable final AppManagementConfiguration value) { + public void setRestrictions(@jakarta.annotation.Nullable final CustomAppManagementConfiguration value) { this.backingStore.set("restrictions", value); } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementRestrictionState.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementRestrictionState.java new file mode 100644 index 00000000000..b045b1c0ebc --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementRestrictionState.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum AppManagementRestrictionState implements ValuedEnum { + Enabled("enabled"), + Disabled("disabled"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + AppManagementRestrictionState(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static AppManagementRestrictionState forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "enabled": return Enabled; + case "disabled": return Disabled; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementServicePrincipalConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementServicePrincipalConfiguration.java new file mode 100644 index 00000000000..96eeddec75f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppManagementServicePrincipalConfiguration.java @@ -0,0 +1,45 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AppManagementServicePrincipalConfiguration extends AppManagementConfiguration implements Parsable { + /** + * Instantiates a new {@link AppManagementServicePrincipalConfiguration} and sets the default values. + */ + public AppManagementServicePrincipalConfiguration() { + super(); + this.setOdataType("#microsoft.graph.appManagementServicePrincipalConfiguration"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AppManagementServicePrincipalConfiguration} + */ + @jakarta.annotation.Nonnull + public static AppManagementServicePrincipalConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AppManagementServicePrincipalConfiguration(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppRoleAssignment.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppRoleAssignment.java index 8758cc377c0..b26099fcde9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AppRoleAssignment.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppRoleAssignment.java @@ -27,7 +27,7 @@ public static AppRoleAssignment createFromDiscriminatorValue(@jakarta.annotation return new AppRoleAssignment(); } /** - * Gets the appRoleId property value. The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. + * Gets the appRoleId property value. The identifier (id) for the app role that is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. * @return a {@link UUID} */ @jakarta.annotation.Nullable @@ -114,7 +114,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeUUIDValue("resourceId", this.getResourceId()); } /** - * Sets the appRoleId property value. The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. + * Sets the appRoleId property value. The identifier (id) for the app role that is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. * @param value Value to set for the appRoleId property. */ public void setAppRoleId(@jakarta.annotation.Nullable final UUID value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppScope.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppScope.java index 7423dac2540..34cfb5be0f0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AppScope.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppScope.java @@ -32,7 +32,7 @@ public static AppScope createFromDiscriminatorValue(@jakarta.annotation.Nonnull return new AppScope(); } /** - * Gets the displayName property value. Provides the display name of the app-specific resource represented by the app scope. Provided for display purposes since appScopeId is often an immutable, non-human-readable id. This property is read only. + * Gets the displayName property value. Provides the display name of the app-specific resource represented by the app scope. Provided for display purposes since appScopeId is often an immutable, non-human-readable ID. Read only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -51,7 +51,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the type property value. Describes the type of app-specific resource represented by the app scope and is provided for display purposes, so a user interface can convey to the user the kind of app specific resource represented by the app scope. This property is read only. + * Gets the type property value. Describes the type of app-specific resource represented by the app scope. For display purposes, so a user interface can convey to the user the kind of app specific resource represented by the app scope. Read only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -69,14 +69,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("type", this.getType()); } /** - * Sets the displayName property value. Provides the display name of the app-specific resource represented by the app scope. Provided for display purposes since appScopeId is often an immutable, non-human-readable id. This property is read only. + * Sets the displayName property value. Provides the display name of the app-specific resource represented by the app scope. Provided for display purposes since appScopeId is often an immutable, non-human-readable ID. Read only. * @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 type property value. Describes the type of app-specific resource represented by the app scope and is provided for display purposes, so a user interface can convey to the user the kind of app specific resource represented by the app scope. This property is read only. + * Sets the type property value. Describes the type of app-specific resource represented by the app scope. For display purposes, so a user interface can convey to the user the kind of app specific resource represented by the app scope. Read only. * @param value Value to set for the type property. */ public void setType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AppleDeploymentChannel.java b/src/main/java/com/microsoft/graph/beta/generated/models/AppleDeploymentChannel.java index c810faacf94..83a82210eb5 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AppleDeploymentChannel.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AppleDeploymentChannel.java @@ -11,7 +11,9 @@ public enum AppleDeploymentChannel implements ValuedEnum { /** Send payload down over Device Channel. */ DeviceChannel("deviceChannel"), /** Send payload down over User Channel. */ - UserChannel("userChannel"); + UserChannel("userChannel"), + /** Evolvable enumeration sentinel value. Do not use. */ + UnknownFutureValue("unknownFutureValue"); public final String value; AppleDeploymentChannel(final String value) { this.value = value; @@ -24,6 +26,7 @@ public static AppleDeploymentChannel forValue(@jakarta.annotation.Nonnull final switch(searchValue) { case "deviceChannel": return DeviceChannel; case "userChannel": return UserChannel; + case "unknownFutureValue": return UnknownFutureValue; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Application.java b/src/main/java/com/microsoft/graph/beta/generated/models/Application.java index 51ddca38c3f..4304bc1adef 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/Application.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Application.java @@ -4,6 +4,7 @@ import com.microsoft.kiota.serialization.ParseNode; import com.microsoft.kiota.serialization.SerializationWriter; import java.time.OffsetDateTime; +import java.util.EnumSet; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -177,6 +178,7 @@ public Map> getFieldDeserializers deserializerMap.put("isFallbackPublicClient", (n) -> { this.setIsFallbackPublicClient(n.getBooleanValue()); }); deserializerMap.put("keyCredentials", (n) -> { this.setKeyCredentials(n.getCollectionOfObjectValues(KeyCredential::createFromDiscriminatorValue)); }); deserializerMap.put("logo", (n) -> { this.setLogo(n.getByteArrayValue()); }); + deserializerMap.put("nativeAuthenticationApisEnabled", (n) -> { this.setNativeAuthenticationApisEnabled(n.getEnumSetValue(NativeAuthenticationApisEnabled::forValue)); }); deserializerMap.put("notes", (n) -> { this.setNotes(n.getStringValue()); }); deserializerMap.put("onPremisesPublishing", (n) -> { this.setOnPremisesPublishing(n.getObjectValue(OnPremisesPublishing::createFromDiscriminatorValue)); }); deserializerMap.put("optionalClaims", (n) -> { this.setOptionalClaims(n.getObjectValue(OptionalClaims::createFromDiscriminatorValue)); }); @@ -267,6 +269,14 @@ public java.util.List getKeyCredentials() { public byte[] getLogo() { return this.backingStore.get("logo"); } + /** + * Gets the nativeAuthenticationApisEnabled property value. Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: noneand all. Default is none. For more information, see Native Authentication. + * @return a {@link EnumSet} + */ + @jakarta.annotation.Nullable + public EnumSet getNativeAuthenticationApisEnabled() { + return this.backingStore.get("nativeAuthenticationApisEnabled"); + } /** * Gets the notes property value. Notes relevant for the management of the application. * @return a {@link String} @@ -489,6 +499,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("isFallbackPublicClient", this.getIsFallbackPublicClient()); writer.writeCollectionOfObjectValues("keyCredentials", this.getKeyCredentials()); writer.writeByteArrayValue("logo", this.getLogo()); + writer.writeEnumSetValue("nativeAuthenticationApisEnabled", this.getNativeAuthenticationApisEnabled()); writer.writeStringValue("notes", this.getNotes()); writer.writeObjectValue("onPremisesPublishing", this.getOnPremisesPublishing()); writer.writeObjectValue("optionalClaims", this.getOptionalClaims()); @@ -675,6 +686,13 @@ public void setKeyCredentials(@jakarta.annotation.Nullable final java.util.List< public void setLogo(@jakarta.annotation.Nullable final byte[] value) { this.backingStore.set("logo", value); } + /** + * Sets the nativeAuthenticationApisEnabled property value. Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: noneand all. Default is none. For more information, see Native Authentication. + * @param value Value to set for the nativeAuthenticationApisEnabled property. + */ + public void setNativeAuthenticationApisEnabled(@jakarta.annotation.Nullable final EnumSet value) { + this.backingStore.set("nativeAuthenticationApisEnabled", value); + } /** * Sets the notes property value. Notes relevant for the management of the application. * @param value Value to set for the notes property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ApplicationTemplate.java b/src/main/java/com/microsoft/graph/beta/generated/models/ApplicationTemplate.java index 0405387d481..80325f02c19 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ApplicationTemplate.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ApplicationTemplate.java @@ -32,6 +32,14 @@ public static ApplicationTemplate createFromDiscriminatorValue(@jakarta.annotati public java.util.List getCategories() { return this.backingStore.get("categories"); } + /** + * Gets the configurationUris property value. The URIs required for the single sign-on configuration of a preintegrated application. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getConfigurationUris() { + return this.backingStore.get("configurationUris"); + } /** * Gets the description property value. A description of the application. * @return a {@link String} @@ -56,6 +64,7 @@ public String getDisplayName() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("categories", (n) -> { this.setCategories(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("configurationUris", (n) -> { this.setConfigurationUris(n.getCollectionOfObjectValues(ConfigurationUri::createFromDiscriminatorValue)); }); deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("homePageUrl", (n) -> { this.setHomePageUrl(n.getStringValue()); }); @@ -131,6 +140,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeCollectionOfPrimitiveValues("categories", this.getCategories()); + writer.writeCollectionOfObjectValues("configurationUris", this.getConfigurationUris()); writer.writeStringValue("description", this.getDescription()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("homePageUrl", this.getHomePageUrl()); @@ -148,6 +158,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setCategories(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("categories", value); } + /** + * Sets the configurationUris property value. The URIs required for the single sign-on configuration of a preintegrated application. + * @param value Value to set for the configurationUris property. + */ + public void setConfigurationUris(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("configurationUris", value); + } /** * Sets the description property value. A description of the application. * @param value Value to set for the description property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ApprovalStage.java b/src/main/java/com/microsoft/graph/beta/generated/models/ApprovalStage.java index 9f2c6e2c3ba..8b366e965f1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ApprovalStage.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ApprovalStage.java @@ -48,7 +48,7 @@ public Map getAdditionalData() { return value; } /** - * Gets the approvalStageTimeOutInDays property value. The number of days that a request can be pending a response before it's automatically denied. + * Gets the approvalStageTimeOutInDays property value. The number of days that a request can be pending a response before it is automatically denied. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the escalationApprovers property value. If escalation is enabled and the primary approvers don't respond before the escalation time, the escalationApprovers are the users who will be asked to approve requests. This can be a collection of singleUser, groupMembers, requestorManager, internalSponsors and externalSponsors. When creating or updating a policy, if there are no escalation approvers, or escalation approvers aren't required for the stage, the value of this property should be an empty collection. + * Gets the escalationApprovers property value. The users who are asked to approve requests if escalation is enabled and the primary approvers don't respond before the escalation time. This property can be a collection of singleUser, groupMembers, requestorManager, internalSponsors, and externalSponsors. When you create or update a policy, if there are no escalation approvers, or escalation approvers aren't required for the stage, assign an empty collection to this property. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -120,7 +120,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the primaryApprovers property value. The users who are asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors and targetUserSponsors. When creating or updating a policy, include at least one userSet in this collection. + * Gets the primaryApprovers property value. The users who are asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors, and targetUserSponsors. When creating or updating a policy, include at least one userSet in this collection. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -150,7 +150,7 @@ public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { @@ -200,7 +200,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the primaryApprovers property value. The users who are asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors and targetUserSponsors. When creating or updating a policy, include at least one userSet in this collection. + * Sets the primaryApprovers property value. The users who are asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors, and targetUserSponsors. When creating or updating a policy, include at least one userSet in this collection. * @param value Value to set for the primaryApprovers property. */ public void setPrimaryApprovers(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ArchivedPrintJob.java b/src/main/java/com/microsoft/graph/beta/generated/models/ArchivedPrintJob.java index 19f56caaa22..18453c5e0dd 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ArchivedPrintJob.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ArchivedPrintJob.java @@ -89,7 +89,7 @@ public Integer getColorPageCount() { return this.backingStore.get("colorPageCount"); } /** - * Gets the completionDateTime property value. The dateTimeOffset when the job was completed, canceled or aborted. Read-only. + * Gets the completionDateTime property value. The dateTimeOffset when the job was completed, canceled, or aborted. Read-only. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -277,7 +277,7 @@ public void setColorPageCount(@jakarta.annotation.Nullable final Integer value) this.backingStore.set("colorPageCount", value); } /** - * Sets the completionDateTime property value. The dateTimeOffset when the job was completed, canceled or aborted. Read-only. + * Sets the completionDateTime property value. The dateTimeOffset when the job was completed, canceled, or aborted. Read-only. * @param value Value to set for the completionDateTime property. */ public void setCompletionDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AssignedLicense.java b/src/main/java/com/microsoft/graph/beta/generated/models/AssignedLicense.java index fac416a2e2e..105873d38f8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AssignedLicense.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AssignedLicense.java @@ -57,7 +57,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. + * Gets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. IDs are available in servicePlans > servicePlanId in the tenant's subscribedSkus or serviceStatus > servicePlanId in the tenant's companySubscription. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -85,7 +85,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the skuId property value. The unique identifier for the SKU. + * Gets the skuId property value. The unique identifier for the SKU. Corresponds to the skuId from subscribedSkus or companySubscription. * @return a {@link UUID} */ @jakarta.annotation.Nullable @@ -119,7 +119,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. + * Sets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. IDs are available in servicePlans > servicePlanId in the tenant's subscribedSkus or serviceStatus > servicePlanId in the tenant's companySubscription. * @param value Value to set for the disabledPlans property. */ public void setDisabledPlans(@jakarta.annotation.Nullable final java.util.List value) { @@ -133,7 +133,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the skuId property value. The unique identifier for the SKU. + * Sets the skuId property value. The unique identifier for the SKU. Corresponds to the skuId from subscribedSkus or companySubscription. * @param value Value to set for the skuId property. */ public void setSkuId(@jakarta.annotation.Nullable final UUID value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AssignmentFilterOperator.java b/src/main/java/com/microsoft/graph/beta/generated/models/AssignmentFilterOperator.java index d7fdce04178..ffc54d26e2a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AssignmentFilterOperator.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AssignmentFilterOperator.java @@ -8,28 +8,38 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public enum AssignmentFilterOperator implements ValuedEnum { - /** NotSet. */ + /** Indicates operator is not set */ NotSet("notSet"), - /** Equals. */ + /** Indicates the devices whose property value equals the configured input in Assignment Filters. */ Equals("equals"), - /** NotEquals. */ + /** Indicates the devices whose property value not equals the configured input in Assignment Filters. */ NotEquals("notEquals"), - /** StartsWith. */ + /** Indicates the devices whose property value starts with the configured input in Assignment Filters. */ StartsWith("startsWith"), - /** NotStartsWith. */ + /** Indicates the devices whose property value does not start with the configured input in Assignment Filters. */ NotStartsWith("notStartsWith"), - /** Contains. */ + /** Indicates the devices whose property value contains the configured input in Assignment Filters. */ Contains("contains"), - /** NotContains. */ + /** Indicates the devices whose property value does not contain the configured input in Assignment Filters. */ NotContains("notContains"), - /** In. */ + /** Indicates the devices whose property value equals one of the configured input in Assignment Filters. */ In("in"), - /** NotIn. */ + /** Indicates the devices whose property value does not equals any of the configured input in Assignment Filters. */ NotIn("notIn"), - /** EndsWith. */ + /** Indicates the devices whose property value ends with the configured input in Assignment Filters. */ EndsWith("endsWith"), - /** NotEndsWith. */ - NotEndsWith("notEndsWith"); + /** Indicates the devices whose property value does not end with the configured input in Assignment Filters. */ + NotEndsWith("notEndsWith"), + /** Indicates the devices whose property value is greater than the configured input in Assignment Filters. */ + GreaterThan("greaterThan"), + /** Indicates the devices whose property value is greater than or equal to the configured input in Assignment Filters. */ + GreaterThanOrEquals("greaterThanOrEquals"), + /** Indicates the devices whose property value is less than the configured input in Assignment Filters. */ + LessThan("lessThan"), + /** Indicates the devices whose property value is less than or equal to the configured input in Assignment Filters. */ + LessThanOrEquals("lessThanOrEquals"), + /** Evolvable enumeration sentinel value. Do not use. */ + UnknownFutureValue("unknownFutureValue"); public final String value; AssignmentFilterOperator(final String value) { this.value = value; @@ -51,6 +61,11 @@ public static AssignmentFilterOperator forValue(@jakarta.annotation.Nonnull fina case "notIn": return NotIn; case "endsWith": return EndsWith; case "notEndsWith": return NotEndsWith; + case "greaterThan": return GreaterThan; + case "greaterThanOrEquals": return GreaterThanOrEquals; + case "lessThan": return LessThan; + case "lessThanOrEquals": return LessThanOrEquals; + case "unknownFutureValue": return UnknownFutureValue; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AttendanceRecord.java b/src/main/java/com/microsoft/graph/beta/generated/models/AttendanceRecord.java index 082d979f2d9..0e58dc5bca9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AttendanceRecord.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AttendanceRecord.java @@ -64,7 +64,7 @@ public Identity getIdentity() { return this.backingStore.get("identity"); } /** - * Gets the registrantId property value. Unique identifier of a meetingRegistrant. Presents when the participant has registered for the meeting. + * Gets the registrantId property value. Unique identifier of a meetingRegistrant. Presents when the participant has registered for the meeting. (deprecated) * @return a {@link String} */ @jakarta.annotation.Nullable @@ -123,7 +123,7 @@ public void setIdentity(@jakarta.annotation.Nullable final Identity value) { this.backingStore.set("identity", value); } /** - * Sets the registrantId property value. Unique identifier of a meetingRegistrant. Presents when the participant has registered for the meeting. + * Sets the registrantId property value. Unique identifier of a meetingRegistrant. Presents when the participant has registered for the meeting. (deprecated) * @param value Value to set for the registrantId property. */ public void setRegistrantId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Authentication.java b/src/main/java/com/microsoft/graph/beta/generated/models/Authentication.java index 41c89fda16b..7bc55b3db60 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/Authentication.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Authentication.java @@ -56,6 +56,7 @@ public Map> getFieldDeserializers deserializerMap.put("passwordMethods", (n) -> { this.setPasswordMethods(n.getCollectionOfObjectValues(PasswordAuthenticationMethod::createFromDiscriminatorValue)); }); deserializerMap.put("phoneMethods", (n) -> { this.setPhoneMethods(n.getCollectionOfObjectValues(PhoneAuthenticationMethod::createFromDiscriminatorValue)); }); deserializerMap.put("platformCredentialMethods", (n) -> { this.setPlatformCredentialMethods(n.getCollectionOfObjectValues(PlatformCredentialAuthenticationMethod::createFromDiscriminatorValue)); }); + deserializerMap.put("requirements", (n) -> { this.setRequirements(n.getObjectValue(StrongAuthenticationRequirements::createFromDiscriminatorValue)); }); deserializerMap.put("signInPreferences", (n) -> { this.setSignInPreferences(n.getObjectValue(SignInPreferences::createFromDiscriminatorValue)); }); deserializerMap.put("softwareOathMethods", (n) -> { this.setSoftwareOathMethods(n.getCollectionOfObjectValues(SoftwareOathAuthenticationMethod::createFromDiscriminatorValue)); }); deserializerMap.put("temporaryAccessPassMethods", (n) -> { this.setTemporaryAccessPassMethods(n.getCollectionOfObjectValues(TemporaryAccessPassAuthenticationMethod::createFromDiscriminatorValue)); }); @@ -79,7 +80,7 @@ public java.util.List getMicrosoftAu return this.backingStore.get("microsoftAuthenticatorMethods"); } /** - * Gets the operations property value. The operations property + * Gets the operations property value. Represents the status of a long-running operation, such as a password reset operation. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -118,6 +119,14 @@ public java.util.List getPhoneMethods() { public java.util.List getPlatformCredentialMethods() { return this.backingStore.get("platformCredentialMethods"); } + /** + * Gets the requirements property value. The settings and preferences for per-user Microsoft Entra multifactor authentication. + * @return a {@link StrongAuthenticationRequirements} + */ + @jakarta.annotation.Nullable + public StrongAuthenticationRequirements getRequirements() { + return this.backingStore.get("requirements"); + } /** * Gets the signInPreferences property value. The settings and preferences for the sign-in experience of a user. Use this property to configure the user's default multifactor authentication (MFA) method. * @return a {@link SignInPreferences} @@ -166,6 +175,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("passwordMethods", this.getPasswordMethods()); writer.writeCollectionOfObjectValues("phoneMethods", this.getPhoneMethods()); writer.writeCollectionOfObjectValues("platformCredentialMethods", this.getPlatformCredentialMethods()); + writer.writeObjectValue("requirements", this.getRequirements()); writer.writeObjectValue("signInPreferences", this.getSignInPreferences()); writer.writeCollectionOfObjectValues("softwareOathMethods", this.getSoftwareOathMethods()); writer.writeCollectionOfObjectValues("temporaryAccessPassMethods", this.getTemporaryAccessPassMethods()); @@ -200,7 +210,7 @@ public void setMicrosoftAuthenticatorMethods(@jakarta.annotation.Nullable final this.backingStore.set("microsoftAuthenticatorMethods", value); } /** - * Sets the operations property value. The operations property + * Sets the operations property value. Represents the status of a long-running operation, such as a password reset operation. * @param value Value to set for the operations property. */ public void setOperations(@jakarta.annotation.Nullable final java.util.List value) { @@ -234,6 +244,13 @@ public void setPhoneMethods(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("platformCredentialMethods", value); } + /** + * Sets the requirements property value. The settings and preferences for per-user Microsoft Entra multifactor authentication. + * @param value Value to set for the requirements property. + */ + public void setRequirements(@jakarta.annotation.Nullable final StrongAuthenticationRequirements value) { + this.backingStore.set("requirements", value); + } /** * Sets the signInPreferences property value. The settings and preferences for the sign-in experience of a user. Use this property to configure the user's default multifactor authentication (MFA) method. * @param value Value to set for the signInPreferences property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationAttributeCollectionInputConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationAttributeCollectionInputConfiguration.java index 09286ff58c9..09d263e38cd 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationAttributeCollectionInputConfiguration.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationAttributeCollectionInputConfiguration.java @@ -64,7 +64,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the defaultValue property value. The default value of the attribute displayed to the end user. + * Gets the defaultValue property value. The default value of the attribute displayed to the end user. The capability to set the default value isn't available through the Microsoft Entra admin center. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public String getDefaultValue() { return this.backingStore.get("defaultValue"); } /** - * Gets the editable property value. Whether the attribute is editable by the end user. + * Gets the editable property value. Defines whether the attribute is editable by the end user. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -100,7 +100,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the hidden property value. Whether the attribute is displayed to the end user. + * Gets the hidden property value. Defines whether the attribute is displayed to the end user. The capability to hide isn't available through the Microsoft Entra admin center. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -116,7 +116,7 @@ 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. + * Gets the label property value. The label of the attribute field that's displayed to end user, unless overridden. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -140,7 +140,7 @@ public java.util.List getO return this.backingStore.get("options"); } /** - * Gets the required property value. Whether the field is required. + * Gets the required property value. Defines whether the field is required. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -148,7 +148,7 @@ public Boolean getRequired() { return this.backingStore.get("required"); } /** - * Gets the validationRegEx property value. The regex for the value of the field. + * Gets the validationRegEx property value. The regex for the value of the field. For more information about the supported regexes, see validationRegEx values for inputType objects. To understand how to specify regexes, see the Regular expressions cheat sheet. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -156,7 +156,7 @@ public String getValidationRegEx() { return this.backingStore.get("validationRegEx"); } /** - * Gets the writeToDirectory property value. Whether the value collected is stored. + * Gets the writeToDirectory property value. Defines whether Microsoft Entra ID stores the value that it collects. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -205,21 +205,21 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the defaultValue property value. The default value of the attribute displayed to the end user. + * Sets the defaultValue property value. The default value of the attribute displayed to the end user. The capability to set the default value isn't available through the Microsoft Entra admin center. * @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. + * Sets the editable property value. Defines 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. + * Sets the hidden property value. Defines whether the attribute is displayed to the end user. The capability to hide isn't available through the Microsoft Entra admin center. * @param value Value to set for the hidden property. */ public void setHidden(@jakarta.annotation.Nullable final Boolean value) { @@ -233,7 +233,7 @@ public void setInputType(@jakarta.annotation.Nullable final AuthenticationAttrib this.backingStore.set("inputType", value); } /** - * Sets the label property value. The label of the attribute field that is displayed to end user, unless overridden. + * Sets the label property value. The label of the attribute field that's displayed to end user, unless overridden. * @param value Value to set for the label property. */ public void setLabel(@jakarta.annotation.Nullable final String value) { @@ -254,21 +254,21 @@ public void setOptions(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers return deserializerMap; } /** - * Gets the inputs property value. The display configuration of attributes being collected on the attribute collection page. + * Gets the inputs property value. The display configuration of attributes being collected on the attribute collection page. You must specify all attributes that you want to retain, otherwise they're removed from the user flow. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -135,7 +135,7 @@ 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. + * Sets the inputs property value. The display configuration of attributes being collected on the attribute collection page. You must specify all attributes that you want to retain, otherwise they're removed from the user flow. * @param value Value to set for the inputs property. */ public void setInputs(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationEventsFlow.java b/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationEventsFlow.java index fad3748ada7..cac763b0ff4 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationEventsFlow.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationEventsFlow.java @@ -32,7 +32,7 @@ public static AuthenticationEventsFlow createFromDiscriminatorValue(@jakarta.ann 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. * @return a {@link AuthenticationConditions} */ @jakarta.annotation.Nullable @@ -89,7 +89,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeIntegerValue("priority", this.getPriority()); } /** - * 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. * @param value Value to set for the conditions property. */ public void setConditions(@jakarta.annotation.Nullable final AuthenticationConditions value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationMethod.java b/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationMethod.java index 7c11f7303ae..954dd444961 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AuthenticationMethod.java @@ -3,6 +3,7 @@ import com.microsoft.kiota.serialization.Parsable; import com.microsoft.kiota.serialization.ParseNode; import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -40,6 +41,14 @@ public static AuthenticationMethod createFromDiscriminatorValue(@jakarta.annotat } return new AuthenticationMethod(); } + /** + * Gets the createdDateTime property value. The createdDateTime property + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -47,6 +56,7 @@ public static AuthenticationMethod createFromDiscriminatorValue(@jakarta.annotat @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); return deserializerMap; } /** @@ -56,5 +66,13 @@ public Map> getFieldDeserializers public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + } + /** + * Sets the createdDateTime property value. The createdDateTime property + * @param value Value to set for the createdDateTime property. + */ + public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("createdDateTime", value); } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/AwsAuthorizationSystemResource.java b/src/main/java/com/microsoft/graph/beta/generated/models/AwsAuthorizationSystemResource.java index bc64f9f5688..cba577a5f2d 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/AwsAuthorizationSystemResource.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/AwsAuthorizationSystemResource.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the service property value. The service associated with the resource in an AWS authorization system. This is auto-expanded. + * Gets the service property value. The service associated with the resource in an AWS authorization system. This is autoexpanded. * @return a {@link AuthorizationSystemTypeService} */ @jakarta.annotation.Nullable @@ -53,7 +53,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("service", this.getService()); } /** - * Sets the service property value. The service associated with the resource in an AWS authorization system. This is auto-expanded. + * Sets the service property value. The service associated with the resource in an AWS authorization system. This is autoexpanded. * @param value Value to set for the service property. */ public void setService(@jakarta.annotation.Nullable final AuthorizationSystemTypeService value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CallRecording.java b/src/main/java/com/microsoft/graph/beta/generated/models/CallRecording.java index f65b4618a5d..c9c73f9ac80 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CallRecording.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CallRecording.java @@ -79,7 +79,6 @@ public Map> getFieldDeserializers deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("meetingId", (n) -> { this.setMeetingId(n.getStringValue()); }); deserializerMap.put("meetingOrganizer", (n) -> { this.setMeetingOrganizer(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); - deserializerMap.put("meetingOrganizerId", (n) -> { this.setMeetingOrganizerId(n.getStringValue()); }); deserializerMap.put("recordingContentUrl", (n) -> { this.setRecordingContentUrl(n.getStringValue()); }); return deserializerMap; } @@ -99,14 +98,6 @@ public String getMeetingId() { public IdentitySet getMeetingOrganizer() { return this.backingStore.get("meetingOrganizer"); } - /** - * Gets the meetingOrganizerId property value. The unique identifier of the organizer of the onlineMeeting related to this recording. Read-only. - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getMeetingOrganizerId() { - return this.backingStore.get("meetingOrganizerId"); - } /** * Gets the recordingContentUrl property value. The URL that can be used to access the content of the recording. Read-only. * @return a {@link String} @@ -129,7 +120,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeOffsetDateTimeValue("endDateTime", this.getEndDateTime()); writer.writeStringValue("meetingId", this.getMeetingId()); writer.writeObjectValue("meetingOrganizer", this.getMeetingOrganizer()); - writer.writeStringValue("meetingOrganizerId", this.getMeetingOrganizerId()); writer.writeStringValue("recordingContentUrl", this.getRecordingContentUrl()); } /** @@ -181,13 +171,6 @@ public void setMeetingId(@jakarta.annotation.Nullable final String value) { public void setMeetingOrganizer(@jakarta.annotation.Nullable final IdentitySet value) { this.backingStore.set("meetingOrganizer", value); } - /** - * Sets the meetingOrganizerId property value. The unique identifier of the organizer of the onlineMeeting related to this recording. Read-only. - * @param value Value to set for the meetingOrganizerId property. - */ - public void setMeetingOrganizerId(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("meetingOrganizerId", value); - } /** * Sets the recordingContentUrl property value. The URL that can be used to access the content of the recording. Read-only. * @param value Value to set for the recordingContentUrl property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CallTranscript.java b/src/main/java/com/microsoft/graph/beta/generated/models/CallTranscript.java index 2ffb92b0c74..dbf0484b4ad 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CallTranscript.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CallTranscript.java @@ -79,7 +79,6 @@ public Map> getFieldDeserializers deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("meetingId", (n) -> { this.setMeetingId(n.getStringValue()); }); deserializerMap.put("meetingOrganizer", (n) -> { this.setMeetingOrganizer(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); - deserializerMap.put("meetingOrganizerId", (n) -> { this.setMeetingOrganizerId(n.getStringValue()); }); deserializerMap.put("metadataContent", (n) -> { this.setMetadataContent(n.getByteArrayValue()); }); deserializerMap.put("transcriptContentUrl", (n) -> { this.setTranscriptContentUrl(n.getStringValue()); }); return deserializerMap; @@ -100,14 +99,6 @@ public String getMeetingId() { public IdentitySet getMeetingOrganizer() { return this.backingStore.get("meetingOrganizer"); } - /** - * Gets the meetingOrganizerId property value. The unique identifier of the organizer of the onlineMeeting related to this transcript. Read-only. - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getMeetingOrganizerId() { - return this.backingStore.get("meetingOrganizerId"); - } /** * Gets the metadataContent property value. The time-aligned metadata of the utterances in the transcript. Read-only. * @return a {@link byte[]} @@ -138,7 +129,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeOffsetDateTimeValue("endDateTime", this.getEndDateTime()); writer.writeStringValue("meetingId", this.getMeetingId()); writer.writeObjectValue("meetingOrganizer", this.getMeetingOrganizer()); - writer.writeStringValue("meetingOrganizerId", this.getMeetingOrganizerId()); writer.writeByteArrayValue("metadataContent", this.getMetadataContent()); writer.writeStringValue("transcriptContentUrl", this.getTranscriptContentUrl()); } @@ -191,13 +181,6 @@ public void setMeetingId(@jakarta.annotation.Nullable final String value) { public void setMeetingOrganizer(@jakarta.annotation.Nullable final IdentitySet value) { this.backingStore.set("meetingOrganizer", value); } - /** - * Sets the meetingOrganizerId property value. The unique identifier of the organizer of the onlineMeeting related to this transcript. Read-only. - * @param value Value to set for the meetingOrganizerId property. - */ - public void setMeetingOrganizerId(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("meetingOrganizerId", value); - } /** * Sets the metadataContent property value. The time-aligned metadata of the utterances in the transcript. Read-only. * @param value Value to set for the metadataContent property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ChangeAssignmentsActionResult.java b/src/main/java/com/microsoft/graph/beta/generated/models/ChangeAssignmentsActionResult.java new file mode 100644 index 00000000000..bba3909238a --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ChangeAssignmentsActionResult.java @@ -0,0 +1,64 @@ +package com.microsoft.graph.beta.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; +/** + * ChangeAssignmentsActionResult represents the result of executing the changeAssignments action on tracking the live reporting data for applications or configuration regarding their removal or restoration process + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ChangeAssignmentsActionResult extends DeviceActionResult implements Parsable { + /** + * Instantiates a new {@link ChangeAssignmentsActionResult} and sets the default values. + */ + public ChangeAssignmentsActionResult() { + 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 ChangeAssignmentsActionResult} + */ + @jakarta.annotation.Nonnull + public static ChangeAssignmentsActionResult createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ChangeAssignmentsActionResult(); + } + /** + * Gets the deviceAssignmentItems property value. Indicates the list of applications or configuration to report live results during their changeAssignments action execution process. The result for each individual application or configuration can contain whether it's being removed or restored, what's the current status with potential message or error code, and when any changes happen on it. Read-Only. This collection can contain a maximum of 30 elements. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getDeviceAssignmentItems() { + return this.backingStore.get("deviceAssignmentItems"); + } + /** + * 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("deviceAssignmentItems", (n) -> { this.setDeviceAssignmentItems(n.getCollectionOfObjectValues(DeviceAssignmentItem::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("deviceAssignmentItems", this.getDeviceAssignmentItems()); + } + /** + * Sets the deviceAssignmentItems property value. Indicates the list of applications or configuration to report live results during their changeAssignments action execution process. The result for each individual application or configuration can contain whether it's being removed or restored, what's the current status with potential message or error code, and when any changes happen on it. Read-Only. This collection can contain a maximum of 30 elements. + * @param value Value to set for the deviceAssignmentItems property. + */ + public void setDeviceAssignmentItems(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("deviceAssignmentItems", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ClickSource.java b/src/main/java/com/microsoft/graph/beta/generated/models/ClickSource.java new file mode 100644 index 00000000000..a0403a2caaa --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ClickSource.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum ClickSource implements ValuedEnum { + Unknown("unknown"), + QrCode("qrCode"), + PhishingUrl("phishingUrl"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + ClickSource(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static ClickSource forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "unknown": return Unknown; + case "qrCode": return QrCode; + case "phishingUrl": return PhishingUrl; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPC.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPC.java index ea48515c99a..932ae2a2644 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPC.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPC.java @@ -41,6 +41,14 @@ public String getAadDeviceId() { public String getAllotmentDisplayName() { return this.backingStore.get("allotmentDisplayName"); } + /** + * Gets the connectionSetting property value. The connection setting of the Cloud PC. Possible values: enableSingleSignOn. Read Only. + * @return a {@link CloudPcConnectionSetting} + */ + @jakarta.annotation.Nullable + public CloudPcConnectionSetting getConnectionSetting() { + return this.backingStore.get("connectionSetting"); + } /** * Gets the connectionSettings property value. The connectionSettings property * @return a {@link CloudPcConnectionSettings} @@ -57,6 +65,14 @@ public CloudPcConnectionSettings getConnectionSettings() { public CloudPcConnectivityResult getConnectivityResult() { return this.backingStore.get("connectivityResult"); } + /** + * Gets the deviceRegionName property value. The name of the geographical region where the Cloud PC is currently provisioned. For example, westus3, eastus2, and southeastasia. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDeviceRegionName() { + return this.backingStore.get("deviceRegionName"); + } /** * Gets the disasterRecoveryCapability property value. The disaster recovery status of the Cloud PC, including the primary region, secondary region, and capability type. The default value is null that indicates that the disaster recovery setting is disabled. To receive a response with the disasterRecoveryCapability property, $select and $filter it by disasterRecoveryCapability/{subProperty} in the request URL. For more details, see Example 4: List Cloud PCs filtered by disaster recovery capability type. Read-only. * @return a {@link CloudPcDisasterRecoveryCapability} @@ -90,8 +106,10 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("aadDeviceId", (n) -> { this.setAadDeviceId(n.getStringValue()); }); deserializerMap.put("allotmentDisplayName", (n) -> { this.setAllotmentDisplayName(n.getStringValue()); }); + deserializerMap.put("connectionSetting", (n) -> { this.setConnectionSetting(n.getObjectValue(CloudPcConnectionSetting::createFromDiscriminatorValue)); }); deserializerMap.put("connectionSettings", (n) -> { this.setConnectionSettings(n.getObjectValue(CloudPcConnectionSettings::createFromDiscriminatorValue)); }); deserializerMap.put("connectivityResult", (n) -> { this.setConnectivityResult(n.getObjectValue(CloudPcConnectivityResult::createFromDiscriminatorValue)); }); + deserializerMap.put("deviceRegionName", (n) -> { this.setDeviceRegionName(n.getStringValue()); }); deserializerMap.put("disasterRecoveryCapability", (n) -> { this.setDisasterRecoveryCapability(n.getObjectValue(CloudPcDisasterRecoveryCapability::createFromDiscriminatorValue)); }); deserializerMap.put("diskEncryptionState", (n) -> { this.setDiskEncryptionState(n.getEnumValue(CloudPcDiskEncryptionState::forValue)); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); @@ -114,6 +132,7 @@ public Map> getFieldDeserializers deserializerMap.put("servicePlanName", (n) -> { this.setServicePlanName(n.getStringValue()); }); deserializerMap.put("servicePlanType", (n) -> { this.setServicePlanType(n.getEnumValue(CloudPcServicePlanType::forValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(CloudPcStatus::forValue)); }); + deserializerMap.put("statusDetail", (n) -> { this.setStatusDetail(n.getObjectValue(CloudPcStatusDetail::createFromDiscriminatorValue)); }); deserializerMap.put("statusDetails", (n) -> { this.setStatusDetails(n.getObjectValue(CloudPcStatusDetails::createFromDiscriminatorValue)); }); deserializerMap.put("userAccountType", (n) -> { this.setUserAccountType(n.getEnumValue(CloudPcUserAccountType::forValue)); }); deserializerMap.put("userPrincipalName", (n) -> { this.setUserPrincipalName(n.getStringValue()); }); @@ -271,6 +290,14 @@ public CloudPcServicePlanType getServicePlanType() { public CloudPcStatus getStatus() { return this.backingStore.get("status"); } + /** + * Gets the statusDetail property value. Indicates the detailed status associated with Cloud PC, including error/warning code, error/warning message, additionalInformation. For example, { 'code': 'internalServerError', 'message': 'There was an error during the Cloud PC upgrade. Please contact support.', 'additionalInformation': null }. + * @return a {@link CloudPcStatusDetail} + */ + @jakarta.annotation.Nullable + public CloudPcStatusDetail getStatusDetail() { + return this.backingStore.get("statusDetail"); + } /** * Gets the statusDetails property value. The details of the Cloud PC status. For example, { 'code': 'internalServerError', 'message': 'There was an error during the Cloud PC upgrade. Please contact support.', 'additionalInformation': null }. This property is deprecated and will no longer be supported effective August 31, 2024. Use statusDetail instead. * @return a {@link CloudPcStatusDetails} @@ -304,8 +331,10 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeStringValue("aadDeviceId", this.getAadDeviceId()); writer.writeStringValue("allotmentDisplayName", this.getAllotmentDisplayName()); + writer.writeObjectValue("connectionSetting", this.getConnectionSetting()); writer.writeObjectValue("connectionSettings", this.getConnectionSettings()); writer.writeObjectValue("connectivityResult", this.getConnectivityResult()); + writer.writeStringValue("deviceRegionName", this.getDeviceRegionName()); writer.writeObjectValue("disasterRecoveryCapability", this.getDisasterRecoveryCapability()); writer.writeEnumValue("diskEncryptionState", this.getDiskEncryptionState()); writer.writeStringValue("displayName", this.getDisplayName()); @@ -328,6 +357,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("servicePlanName", this.getServicePlanName()); writer.writeEnumValue("servicePlanType", this.getServicePlanType()); writer.writeEnumValue("status", this.getStatus()); + writer.writeObjectValue("statusDetail", this.getStatusDetail()); writer.writeObjectValue("statusDetails", this.getStatusDetails()); writer.writeEnumValue("userAccountType", this.getUserAccountType()); writer.writeStringValue("userPrincipalName", this.getUserPrincipalName()); @@ -346,6 +376,13 @@ public void setAadDeviceId(@jakarta.annotation.Nullable final String value) { public void setAllotmentDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("allotmentDisplayName", value); } + /** + * Sets the connectionSetting property value. The connection setting of the Cloud PC. Possible values: enableSingleSignOn. Read Only. + * @param value Value to set for the connectionSetting property. + */ + public void setConnectionSetting(@jakarta.annotation.Nullable final CloudPcConnectionSetting value) { + this.backingStore.set("connectionSetting", value); + } /** * Sets the connectionSettings property value. The connectionSettings property * @param value Value to set for the connectionSettings property. @@ -360,6 +397,13 @@ public void setConnectionSettings(@jakarta.annotation.Nullable final CloudPcConn public void setConnectivityResult(@jakarta.annotation.Nullable final CloudPcConnectivityResult value) { this.backingStore.set("connectivityResult", value); } + /** + * Sets the deviceRegionName property value. The name of the geographical region where the Cloud PC is currently provisioned. For example, westus3, eastus2, and southeastasia. Read-only. + * @param value Value to set for the deviceRegionName property. + */ + public void setDeviceRegionName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("deviceRegionName", value); + } /** * Sets the disasterRecoveryCapability property value. The disaster recovery status of the Cloud PC, including the primary region, secondary region, and capability type. The default value is null that indicates that the disaster recovery setting is disabled. To receive a response with the disasterRecoveryCapability property, $select and $filter it by disasterRecoveryCapability/{subProperty} in the request URL. For more details, see Example 4: List Cloud PCs filtered by disaster recovery capability type. Read-only. * @param value Value to set for the disasterRecoveryCapability property. @@ -514,6 +558,13 @@ public void setServicePlanType(@jakarta.annotation.Nullable final CloudPcService public void setStatus(@jakarta.annotation.Nullable final CloudPcStatus value) { this.backingStore.set("status", value); } + /** + * Sets the statusDetail property value. Indicates the detailed status associated with Cloud PC, including error/warning code, error/warning message, additionalInformation. For example, { 'code': 'internalServerError', 'message': 'There was an error during the Cloud PC upgrade. Please contact support.', 'additionalInformation': null }. + * @param value Value to set for the statusDetail property. + */ + public void setStatusDetail(@jakarta.annotation.Nullable final CloudPcStatusDetail value) { + this.backingStore.set("statusDetail", value); + } /** * Sets the statusDetails property value. The details of the Cloud PC status. For example, { 'code': 'internalServerError', 'message': 'There was an error during the Cloud PC upgrade. Please contact support.', 'additionalInformation': null }. This property is deprecated and will no longer be supported effective August 31, 2024. Use statusDetail instead. * @param value Value to set for the statusDetails property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcAuditResource.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcAuditResource.java index 6eea907671f..26647554135 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcAuditResource.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcAuditResource.java @@ -69,13 +69,12 @@ public String getDisplayName() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); + final HashMap> deserializerMap = new HashMap>(5); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("modifiedProperties", (n) -> { this.setModifiedProperties(n.getCollectionOfObjectValues(CloudPcAuditProperty::createFromDiscriminatorValue)); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("resourceId", (n) -> { this.setResourceId(n.getStringValue()); }); deserializerMap.put("resourceType", (n) -> { this.setResourceType(n.getStringValue()); }); - deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); }); return deserializerMap; } /** @@ -110,14 +109,6 @@ public String getResourceId() { public String getResourceType() { return this.backingStore.get("resourceType"); } - /** - * 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 @@ -129,7 +120,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeStringValue("resourceId", this.getResourceId()); writer.writeStringValue("resourceType", this.getResourceType()); - writer.writeStringValue("type", this.getType()); writer.writeAdditionalData(this.getAdditionalData()); } /** @@ -182,11 +172,4 @@ public void setResourceId(@jakarta.annotation.Nullable final String value) { public void setResourceType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("resourceType", 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/beta/generated/models/CloudPcBulkAction.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcBulkAction.java index 9eb3f7a37df..336b305c56a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcBulkAction.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcBulkAction.java @@ -84,9 +84,19 @@ public Map> getFieldDeserializers deserializerMap.put("cloudPcIds", (n) -> { this.setCloudPcIds(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("initiatedByUserPrincipalName", (n) -> { this.setInitiatedByUserPrincipalName(n.getStringValue()); }); deserializerMap.put("scheduledDuringMaintenanceWindow", (n) -> { this.setScheduledDuringMaintenanceWindow(n.getBooleanValue()); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(CloudPcBulkActionStatus::forValue)); }); return deserializerMap; } + /** + * Gets the initiatedByUserPrincipalName property value. Indicates the user principal name (UPN) of the user who initiated this bulk action. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getInitiatedByUserPrincipalName() { + return this.backingStore.get("initiatedByUserPrincipalName"); + } /** * Gets the scheduledDuringMaintenanceWindow property value. Indicates whether the bulk action is scheduled according to the maintenance window. When true, the bulk action uses the maintenance window to schedule the action; false means that the bulk action doesn't use the maintenance window. The default value is false. * @return a {@link Boolean} @@ -95,6 +105,14 @@ public Map> getFieldDeserializers public Boolean getScheduledDuringMaintenanceWindow() { return this.backingStore.get("scheduledDuringMaintenanceWindow"); } + /** + * Gets the status property value. Indicates the status of bulk actions. Possible values are pending, succeeded, failed, unknownFutureValue. The default value is pending. Read-only. + * @return a {@link CloudPcBulkActionStatus} + */ + @jakarta.annotation.Nullable + public CloudPcBulkActionStatus getStatus() { + return this.backingStore.get("status"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -106,7 +124,9 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfPrimitiveValues("cloudPcIds", this.getCloudPcIds()); writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeStringValue("initiatedByUserPrincipalName", this.getInitiatedByUserPrincipalName()); writer.writeBooleanValue("scheduledDuringMaintenanceWindow", this.getScheduledDuringMaintenanceWindow()); + writer.writeEnumValue("status", this.getStatus()); } /** * Sets the actionSummary property value. Run summary of this bulk action. @@ -136,6 +156,13 @@ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } + /** + * Sets the initiatedByUserPrincipalName property value. Indicates the user principal name (UPN) of the user who initiated this bulk action. Read-only. + * @param value Value to set for the initiatedByUserPrincipalName property. + */ + public void setInitiatedByUserPrincipalName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("initiatedByUserPrincipalName", value); + } /** * Sets the scheduledDuringMaintenanceWindow property value. Indicates whether the bulk action is scheduled according to the maintenance window. When true, the bulk action uses the maintenance window to schedule the action; false means that the bulk action doesn't use the maintenance window. The default value is false. * @param value Value to set for the scheduledDuringMaintenanceWindow property. @@ -143,4 +170,11 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { public void setScheduledDuringMaintenanceWindow(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("scheduledDuringMaintenanceWindow", value); } + /** + * Sets the status property value. Indicates the status of bulk actions. Possible values are pending, succeeded, failed, unknownFutureValue. The default value is pending. Read-only. + * @param value Value to set for the status property. + */ + public void setStatus(@jakarta.annotation.Nullable final CloudPcBulkActionStatus value) { + this.backingStore.set("status", value); + } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcBulkActionStatus.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcBulkActionStatus.java new file mode 100644 index 00000000000..2199ea8c8a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcBulkActionStatus.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum CloudPcBulkActionStatus implements ValuedEnum { + Pending("pending"), + Succeeded("succeeded"), + Failed("failed"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + CloudPcBulkActionStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static CloudPcBulkActionStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "pending": return Pending; + case "succeeded": return Succeeded; + case "failed": return Failed; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcConnectionSetting.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcConnectionSetting.java new file mode 100644 index 00000000000..875f6c2e8a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcConnectionSetting.java @@ -0,0 +1,124 @@ +package com.microsoft.graph.beta.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 CloudPcConnectionSetting implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcConnectionSetting} and sets the default values. + */ + public CloudPcConnectionSetting() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcConnectionSetting} + */ + @jakarta.annotation.Nonnull + public static CloudPcConnectionSetting createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcConnectionSetting(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the enableSingleSignOn property value. Indicates whether single sign-on is enabled. The default value is false. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getEnableSingleSignOn() { + return this.backingStore.get("enableSingleSignOn"); + } + /** + * 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("enableSingleSignOn", (n) -> { this.setEnableSingleSignOn(n.getBooleanValue()); }); + 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.writeBooleanValue("enableSingleSignOn", this.getEnableSingleSignOn()); + 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 enableSingleSignOn property value. Indicates whether single sign-on is enabled. The default value is false. + * @param value Value to set for the enableSingleSignOn property. + */ + public void setEnableSingleSignOn(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("enableSingleSignOn", 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/beta/generated/models/CloudPcConnectivityResult.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcConnectivityResult.java index 148fb11f77c..f0c2ecac99b 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcConnectivityResult.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcConnectivityResult.java @@ -70,13 +70,22 @@ public java.util.List getFailedHealthCheckItems() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); + final HashMap> deserializerMap = new HashMap>(5); deserializerMap.put("failedHealthCheckItems", (n) -> { this.setFailedHealthCheckItems(n.getCollectionOfObjectValues(CloudPcHealthCheckItem::createFromDiscriminatorValue)); }); + deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(CloudPcConnectivityStatus::forValue)); }); deserializerMap.put("updatedDateTime", (n) -> { this.setUpdatedDateTime(n.getOffsetDateTimeValue()); }); return deserializerMap; } + /** + * Gets the lastModifiedDateTime property value. The last modified time for connectivity status of the Cloud PC. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastModifiedDateTime() { + return this.backingStore.get("lastModifiedDateTime"); + } /** * Gets the @odata.type property value. The OdataType property * @return a {@link String} @@ -108,6 +117,7 @@ public OffsetDateTime getUpdatedDateTime() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); writer.writeCollectionOfObjectValues("failedHealthCheckItems", this.getFailedHealthCheckItems()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeEnumValue("status", this.getStatus()); writer.writeOffsetDateTimeValue("updatedDateTime", this.getUpdatedDateTime()); @@ -135,6 +145,13 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value public void setFailedHealthCheckItems(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("failedHealthCheckItems", value); } + /** + * Sets the lastModifiedDateTime property value. The last modified time for connectivity status of the Cloud PC. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: 2014-01-01T00:00:00Z. + * @param value Value to set for the lastModifiedDateTime property. + */ + public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastModifiedDateTime", 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/beta/generated/models/CloudPcProvisioningPolicy.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcProvisioningPolicy.java index 123a5aea451..cff414da3ea 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcProvisioningPolicy.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcProvisioningPolicy.java @@ -42,7 +42,7 @@ public java.util.List getAssignments() { return this.backingStore.get("assignments"); } /** - * Gets the autopatch property value. The autopatch property + * Gets the autopatch property value. The specific settings for Windows Autopatch that enable its customers to experience it on Cloud PC. The settings take effect when the tenant enrolls in Windows Autopatch and the managedType of the microsoftManagedDesktop property is set as starterManaged. Supports $select. * @return a {@link CloudPcProvisioningPolicyAutopatch} */ @jakarta.annotation.Nullable @@ -257,7 +257,7 @@ public void setAssignments(@jakarta.annotation.Nullable final java.util.List getAdditionalData() { return value; } /** - * Gets the autopatchGroupId property value. The autopatchGroupId property + * Gets the autopatchGroupId property value. The unique identifier (ID) of a Windows Autopatch group. An Autopatch group is a logical container or unit that groups several Microsoft Entra groups and software update policies. Devices with the same Autopatch group ID share unified software update management. The default value is null that indicates that no Autopatch group is associated with the provisioning policy. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -100,7 +100,7 @@ public void setAdditionalData(@jakarta.annotation.Nullable final Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); + final HashMap> deserializerMap = new HashMap>(9); deserializerMap.put("actionName", (n) -> { this.setActionName(n.getStringValue()); }); deserializerMap.put("actionState", (n) -> { this.setActionState(n.getEnumValue(ActionState::forValue)); }); deserializerMap.put("cloudPcId", (n) -> { this.setCloudPcId(n.getStringValue()); }); @@ -94,6 +94,7 @@ public Map> getFieldDeserializers deserializerMap.put("managedDeviceId", (n) -> { this.setManagedDeviceId(n.getStringValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("statusDetail", (n) -> { this.setStatusDetail(n.getObjectValue(CloudPcStatusDetail::createFromDiscriminatorValue)); }); deserializerMap.put("statusDetails", (n) -> { this.setStatusDetails(n.getObjectValue(CloudPcStatusDetails::createFromDiscriminatorValue)); }); return deserializerMap; } @@ -129,6 +130,14 @@ public String getOdataType() { public OffsetDateTime getStartDateTime() { return this.backingStore.get("startDateTime"); } + /** + * Gets the statusDetail property value. The extended details of the action status, including error code, error message, and additional information. For example, 'statusDetail': {'code': 'internalServerError','message': 'There was an internal server error. Please contact support xxx.','additionalInformation': [ { '@odata.type':'microsoft.graph.keyValuePair','name': 'correlationId','value': '52367774-cfb7-4e9c-ab51-1b864c31f2d1'} ]} + * @return a {@link CloudPcStatusDetail} + */ + @jakarta.annotation.Nullable + public CloudPcStatusDetail getStatusDetail() { + return this.backingStore.get("statusDetail"); + } /** * Gets the statusDetails property value. The details of the Cloud PC status. This property is deprecated and will no longer be supported effective August 31, 2024. Use statusDetail instead. * @return a {@link CloudPcStatusDetails} @@ -150,6 +159,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("managedDeviceId", this.getManagedDeviceId()); writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime()); + writer.writeObjectValue("statusDetail", this.getStatusDetail()); writer.writeObjectValue("statusDetails", this.getStatusDetails()); writer.writeAdditionalData(this.getAdditionalData()); } @@ -217,6 +227,13 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { public void setStartDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { this.backingStore.set("startDateTime", value); } + /** + * Sets the statusDetail property value. The extended details of the action status, including error code, error message, and additional information. For example, 'statusDetail': {'code': 'internalServerError','message': 'There was an internal server error. Please contact support xxx.','additionalInformation': [ { '@odata.type':'microsoft.graph.keyValuePair','name': 'correlationId','value': '52367774-cfb7-4e9c-ab51-1b864c31f2d1'} ]} + * @param value Value to set for the statusDetail property. + */ + public void setStatusDetail(@jakarta.annotation.Nullable final CloudPcStatusDetail value) { + this.backingStore.set("statusDetail", value); + } /** * Sets the statusDetails property value. The details of the Cloud PC status. This property is deprecated and will no longer be supported effective August 31, 2024. Use statusDetail instead. * @param value Value to set for the statusDetails property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcReportName.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcReportName.java index 7ca947f4403..7bc8216c2b0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcReportName.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcReportName.java @@ -16,6 +16,7 @@ public enum CloudPcReportName implements ValuedEnum { FrontlineLicenseUsageRealTimeReport("frontlineLicenseUsageRealTimeReport"), RemoteConnectionQualityReports("remoteConnectionQualityReports"), InaccessibleCloudPcReports("inaccessibleCloudPcReports"), + ActionStatusReport("actionStatusReport"), RawRemoteConnectionReports("rawRemoteConnectionReports"), CloudPcUsageCategoryReports("cloudPcUsageCategoryReports"), CrossRegionDisasterRecoveryReport("crossRegionDisasterRecoveryReport"), @@ -42,6 +43,7 @@ public static CloudPcReportName forValue(@jakarta.annotation.Nonnull final Strin case "frontlineLicenseUsageRealTimeReport": return FrontlineLicenseUsageRealTimeReport; case "remoteConnectionQualityReports": return RemoteConnectionQualityReports; case "inaccessibleCloudPcReports": return InaccessibleCloudPcReports; + case "actionStatusReport": return ActionStatusReport; case "rawRemoteConnectionReports": return RawRemoteConnectionReports; case "cloudPcUsageCategoryReports": return CloudPcUsageCategoryReports; case "crossRegionDisasterRecoveryReport": return CrossRegionDisasterRecoveryReport; diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcSharedUseServicePlan.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcSharedUseServicePlan.java deleted file mode 100644 index b391021f8eb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcSharedUseServicePlan.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.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 CloudPcSharedUseServicePlan extends Entity implements Parsable { - /** - * Instantiates a new {@link CloudPcSharedUseServicePlan} and sets the default values. - */ - public CloudPcSharedUseServicePlan() { - 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 CloudPcSharedUseServicePlan} - */ - @jakarta.annotation.Nonnull - public static CloudPcSharedUseServicePlan createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CloudPcSharedUseServicePlan(); - } - /** - * Gets the displayName property value. The display name of the shared-use service plan. - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getDisplayName() { - return this.backingStore.get("displayName"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); - deserializerMap.put("totalCount", (n) -> { this.setTotalCount(n.getIntegerValue()); }); - deserializerMap.put("usedCount", (n) -> { this.setUsedCount(n.getIntegerValue()); }); - return deserializerMap; - } - /** - * Gets the totalCount property value. Total number of shared-use service plans purchased by the customer. - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getTotalCount() { - return this.backingStore.get("totalCount"); - } - /** - * Gets the usedCount property value. The number of service plans that the account uses. - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getUsedCount() { - return this.backingStore.get("usedCount"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - super.serialize(writer); - writer.writeStringValue("displayName", this.getDisplayName()); - writer.writeIntegerValue("totalCount", this.getTotalCount()); - writer.writeIntegerValue("usedCount", this.getUsedCount()); - } - /** - * Sets the displayName property value. The display name of the shared-use service plan. - * @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 totalCount property value. Total number of shared-use service plans purchased by the customer. - * @param value Value to set for the totalCount property. - */ - public void setTotalCount(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("totalCount", value); - } - /** - * Sets the usedCount property value. The number of service plans that the account uses. - * @param value Value to set for the usedCount property. - */ - public void setUsedCount(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("usedCount", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcSharedUseServicePlanCollectionResponse.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcSharedUseServicePlanCollectionResponse.java deleted file mode 100644 index df25f3d2f61..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcSharedUseServicePlanCollectionResponse.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.microsoft.graph.beta.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 CloudPcSharedUseServicePlanCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { - /** - * Instantiates a new {@link CloudPcSharedUseServicePlanCollectionResponse} and sets the default values. - */ - public CloudPcSharedUseServicePlanCollectionResponse() { - 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 CloudPcSharedUseServicePlanCollectionResponse} - */ - @jakarta.annotation.Nonnull - public static CloudPcSharedUseServicePlanCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CloudPcSharedUseServicePlanCollectionResponse(); - } - /** - * 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(CloudPcSharedUseServicePlan::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/beta/generated/models/CloudPcStatus.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcStatus.java index 449439a28cc..809e0d101e0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcStatus.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcStatus.java @@ -18,7 +18,8 @@ public enum CloudPcStatus implements ValuedEnum { UnknownFutureValue("unknownFutureValue"), MovingRegion("movingRegion"), ResizePendingLicense("resizePendingLicense"), - UpdatingSingleSignOn("updatingSingleSignOn"); + UpdatingSingleSignOn("updatingSingleSignOn"), + ModifyingSingleSignOn("modifyingSingleSignOn"); public final String value; CloudPcStatus(final String value) { this.value = value; @@ -43,6 +44,7 @@ public static CloudPcStatus forValue(@jakarta.annotation.Nonnull final String se case "movingRegion": return MovingRegion; case "resizePendingLicense": return ResizePendingLicense; case "updatingSingleSignOn": return UpdatingSingleSignOn; + case "modifyingSingleSignOn": return ModifyingSingleSignOn; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcStatusDetail.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcStatusDetail.java new file mode 100644 index 00000000000..cffd1a0cfcb --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcStatusDetail.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.beta.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 CloudPcStatusDetail implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link CloudPcStatusDetail} and sets the default values. + */ + public CloudPcStatusDetail() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudPcStatusDetail} + */ + @jakarta.annotation.Nonnull + public static CloudPcStatusDetail createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudPcStatusDetail(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the additionalInformation property value. More information about the Cloud PC status. For example, 'additionalInformation': ['{'@odata.type': 'microsoft.graph.keyValuePair','name': 'retriable','value': true }] ' + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAdditionalInformation() { + return this.backingStore.get("additionalInformation"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the code property value. The error/warning code associated with the Cloud PC status. Example: 'code': 'internalServerError'. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCode() { + return this.backingStore.get("code"); + } + /** + * 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("additionalInformation", (n) -> { this.setAdditionalInformation(n.getCollectionOfObjectValues(KeyValuePair::createFromDiscriminatorValue)); }); + deserializerMap.put("code", (n) -> { this.setCode(n.getStringValue()); }); + deserializerMap.put("message", (n) -> { this.setMessage(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the message property value. The status message associated with error code. Example: 'message': 'There was an internal server error. Please contact support xxx.'. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getMessage() { + return this.backingStore.get("message"); + } + /** + * 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.writeCollectionOfObjectValues("additionalInformation", this.getAdditionalInformation()); + writer.writeStringValue("code", this.getCode()); + writer.writeStringValue("message", this.getMessage()); + 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 additionalInformation property value. More information about the Cloud PC status. For example, 'additionalInformation': ['{'@odata.type': 'microsoft.graph.keyValuePair','name': 'retriable','value': true }] ' + * @param value Value to set for the additionalInformation property. + */ + public void setAdditionalInformation(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("additionalInformation", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the code property value. The error/warning code associated with the Cloud PC status. Example: 'code': 'internalServerError'. + * @param value Value to set for the code property. + */ + public void setCode(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("code", value); + } + /** + * Sets the message property value. The status message associated with error code. Example: 'message': 'There was an internal server error. Please contact support xxx.'. + * @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 @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/beta/generated/models/CloudPcTenantEncryptionSetting.java b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcTenantEncryptionSetting.java index 08a46cf8aa3..f4483a43448 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcTenantEncryptionSetting.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CloudPcTenantEncryptionSetting.java @@ -69,7 +69,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the lastSyncDateTime property value. The lastSyncDateTime property + * Gets the lastSyncDateTime property value. Indicates the date and time when last sync tenant encryption setting. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -85,7 +85,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the tenantDiskEncryptionType property value. The tenantDiskEncryptionType property + * Gets the tenantDiskEncryptionType property value. Indicates the Cloud PC disk encryption type for a tenant. It is a tenant-level setting that applies globally to all Cloud PCs in the tenant. Possible values are: platformManagedKey, customerManagedKey, unknownFutureValue. Read-only. * @return a {@link CloudPcDiskEncryptionType} */ @jakarta.annotation.Nullable @@ -119,7 +119,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the lastSyncDateTime property value. The lastSyncDateTime property + * Sets the lastSyncDateTime property value. Indicates the date and time when last sync tenant encryption setting. * @param value Value to set for the lastSyncDateTime property. */ public void setLastSyncDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -133,7 +133,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the tenantDiskEncryptionType property value. The tenantDiskEncryptionType property + * Sets the tenantDiskEncryptionType property value. Indicates the Cloud PC disk encryption type for a tenant. It is a tenant-level setting that applies globally to all Cloud PCs in the tenant. Possible values are: platformManagedKey, customerManagedKey, unknownFutureValue. Read-only. * @param value Value to set for the tenantDiskEncryptionType property. */ public void setTenantDiskEncryptionType(@jakarta.annotation.Nullable final CloudPcDiskEncryptionType value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ColumnDefinition.java b/src/main/java/com/microsoft/graph/beta/generated/models/ColumnDefinition.java index d7157271ec9..1dd76e07c16 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ColumnDefinition.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ColumnDefinition.java @@ -25,7 +25,7 @@ public static ColumnDefinition createFromDiscriminatorValue(@jakarta.annotation. return new ColumnDefinition(); } /** - * Gets the boolean property value. This column stores boolean values. + * Gets the boolean property value. This column stores Boolean values. * @return a {@link BooleanColumn} */ @jakarta.annotation.Nullable @@ -362,7 +362,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("validation", this.getValidation()); } /** - * Sets the boolean property value. This column stores boolean values. + * Sets the boolean property value. This column stores Boolean values. * @param value Value to set for the boolean property. */ public void setBoolean(@jakarta.annotation.Nullable final BooleanColumn value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/CompanyDetail.java b/src/main/java/com/microsoft/graph/beta/generated/models/CompanyDetail.java index 3c89e2f7a1c..d996f24420f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/CompanyDetail.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CompanyDetail.java @@ -63,6 +63,14 @@ public PhysicalAddress getAddress() { public BackingStore getBackingStore() { return this.backingStore; } + /** + * Gets the companyCode property value. Legal entity number of the company or its subdivision. For information on how to set the value for the companyCode, see profileSourceAnnotation. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getCompanyCode() { + return this.backingStore.get("companyCode"); + } /** * Gets the department property value. Department Name within a company. * @return a {@link String} @@ -85,13 +93,15 @@ public String getDisplayName() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); + final HashMap> deserializerMap = new HashMap>(9); deserializerMap.put("address", (n) -> { this.setAddress(n.getObjectValue(PhysicalAddress::createFromDiscriminatorValue)); }); + deserializerMap.put("companyCode", (n) -> { this.setCompanyCode(n.getStringValue()); }); deserializerMap.put("department", (n) -> { this.setDepartment(n.getStringValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("officeLocation", (n) -> { this.setOfficeLocation(n.getStringValue()); }); deserializerMap.put("pronunciation", (n) -> { this.setPronunciation(n.getStringValue()); }); + deserializerMap.put("secondaryDepartment", (n) -> { this.setSecondaryDepartment(n.getStringValue()); }); deserializerMap.put("webUrl", (n) -> { this.setWebUrl(n.getStringValue()); }); return deserializerMap; } @@ -119,6 +129,14 @@ public String getOfficeLocation() { public String getPronunciation() { return this.backingStore.get("pronunciation"); } + /** + * Gets the secondaryDepartment property value. The secondaryDepartment property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSecondaryDepartment() { + return this.backingStore.get("secondaryDepartment"); + } /** * Gets the webUrl property value. Link to the company home page. * @return a {@link String} @@ -134,11 +152,13 @@ public String getWebUrl() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); writer.writeObjectValue("address", this.getAddress()); + writer.writeStringValue("companyCode", this.getCompanyCode()); writer.writeStringValue("department", this.getDepartment()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeStringValue("officeLocation", this.getOfficeLocation()); writer.writeStringValue("pronunciation", this.getPronunciation()); + writer.writeStringValue("secondaryDepartment", this.getSecondaryDepartment()); writer.writeStringValue("webUrl", this.getWebUrl()); writer.writeAdditionalData(this.getAdditionalData()); } @@ -164,6 +184,13 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value Objects.requireNonNull(value); this.backingStore = value; } + /** + * Sets the companyCode property value. Legal entity number of the company or its subdivision. For information on how to set the value for the companyCode, see profileSourceAnnotation. + * @param value Value to set for the companyCode property. + */ + public void setCompanyCode(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("companyCode", value); + } /** * Sets the department property value. Department Name within a company. * @param value Value to set for the department property. @@ -199,6 +226,13 @@ public void setOfficeLocation(@jakarta.annotation.Nullable final String value) { public void setPronunciation(@jakarta.annotation.Nullable final String value) { this.backingStore.set("pronunciation", value); } + /** + * Sets the secondaryDepartment property value. The secondaryDepartment property + * @param value Value to set for the secondaryDepartment property. + */ + public void setSecondaryDepartment(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("secondaryDepartment", value); + } /** * Sets the webUrl property value. Link to the company home page. * @param value Value to set for the webUrl property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ConfigurationUri.java b/src/main/java/com/microsoft/graph/beta/generated/models/ConfigurationUri.java new file mode 100644 index 00000000000..b85cedf9240 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ConfigurationUri.java @@ -0,0 +1,192 @@ +package com.microsoft.graph.beta.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 ConfigurationUri implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ConfigurationUri} and sets the default values. + */ + public ConfigurationUri() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ConfigurationUri} + */ + @jakarta.annotation.Nonnull + public static ConfigurationUri createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ConfigurationUri(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the appliesToSingleSignOnMode property value. The single sign-on mode that the URI is configured for. Possible values are: saml, password. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAppliesToSingleSignOnMode() { + return this.backingStore.get("appliesToSingleSignOnMode"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the examples property value. The various formats that the URI should follow. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getExamples() { + return this.backingStore.get("examples"); + } + /** + * 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("appliesToSingleSignOnMode", (n) -> { this.setAppliesToSingleSignOnMode(n.getStringValue()); }); + deserializerMap.put("examples", (n) -> { this.setExamples(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("isRequired", (n) -> { this.setIsRequired(n.getBooleanValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("usage", (n) -> { this.setUsage(n.getEnumValue(UriUsageType::forValue)); }); + deserializerMap.put("values", (n) -> { this.setValues(n.getCollectionOfPrimitiveValues(String.class)); }); + return deserializerMap; + } + /** + * Gets the isRequired property value. Indicates whether this URI is required for the single sign-on configuration. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsRequired() { + return this.backingStore.get("isRequired"); + } + /** + * 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 usage property value. The usage property + * @return a {@link UriUsageType} + */ + @jakarta.annotation.Nullable + public UriUsageType getUsage() { + return this.backingStore.get("usage"); + } + /** + * Gets the values property value. The suggested values for the URI. Developers may need to customize these values for their tenant. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List 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.writeStringValue("appliesToSingleSignOnMode", this.getAppliesToSingleSignOnMode()); + writer.writeCollectionOfPrimitiveValues("examples", this.getExamples()); + writer.writeBooleanValue("isRequired", this.getIsRequired()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeEnumValue("usage", this.getUsage()); + writer.writeCollectionOfPrimitiveValues("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 appliesToSingleSignOnMode property value. The single sign-on mode that the URI is configured for. Possible values are: saml, password. + * @param value Value to set for the appliesToSingleSignOnMode property. + */ + public void setAppliesToSingleSignOnMode(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("appliesToSingleSignOnMode", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the examples property value. The various formats that the URI should follow. + * @param value Value to set for the examples property. + */ + public void setExamples(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("examples", value); + } + /** + * Sets the isRequired property value. Indicates whether this URI is required for the single sign-on configuration. + * @param value Value to set for the isRequired property. + */ + public void setIsRequired(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isRequired", 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 usage property value. The usage property + * @param value Value to set for the usage property. + */ + public void setUsage(@jakarta.annotation.Nullable final UriUsageType value) { + this.backingStore.set("usage", value); + } + /** + * Sets the values property value. The suggested values for the URI. Developers may need to customize these values for their tenant. + * @param value Value to set for the values property. + */ + public void setValues(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("values", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ContentModel.java b/src/main/java/com/microsoft/graph/beta/generated/models/ContentModel.java new file mode 100644 index 00000000000..6dffcc9ab91 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ContentModel.java @@ -0,0 +1,147 @@ +package com.microsoft.graph.beta.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; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContentModel extends Entity implements Parsable { + /** + * Instantiates a new {@link ContentModel} and sets the default values. + */ + public ContentModel() { + 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 ContentModel} + */ + @jakarta.annotation.Nonnull + public static ContentModel createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ContentModel(); + } + /** + * Gets the createdBy property value. Identity of the user, device, or applicationthat created the item. Read-only. + * @return a {@link IdentitySet} + */ + @jakarta.annotation.Nullable + public IdentitySet getCreatedBy() { + return this.backingStore.get("createdBy"); + } + /** + * Gets the createdDateTime property value. Date and time of item creation. Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } + /** + * 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("createdBy", (n) -> { this.setCreatedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); + deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("modelType", (n) -> { this.setModelType(n.getEnumValue(ContentModelType::forValue)); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the lastModifiedBy property value. Identity of the user, device, or application that modified the item. Read-only. + * @return a {@link IdentitySet} + */ + @jakarta.annotation.Nullable + public IdentitySet getLastModifiedBy() { + return this.backingStore.get("lastModifiedBy"); + } + /** + * Gets the lastModifiedDateTime property value. Date and time of item last modification. Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastModifiedDateTime() { + return this.backingStore.get("lastModifiedDateTime"); + } + /** + * Gets the modelType property value. The type of the contentModel. The possible values are: teachingMethod, layoutMethod, freeformSelectionMethod, prebuiltContractModel, prebuiltInvoiceModel, prebuiltReceiptModel, unknownFutureValue. + * @return a {@link ContentModelType} + */ + @jakarta.annotation.Nullable + public ContentModelType getModelType() { + return this.backingStore.get("modelType"); + } + /** + * Gets the name property value. The name of the contentModel. + * @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); + super.serialize(writer); + writer.writeObjectValue("createdBy", this.getCreatedBy()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + writer.writeObjectValue("lastModifiedBy", this.getLastModifiedBy()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeEnumValue("modelType", this.getModelType()); + writer.writeStringValue("name", this.getName()); + } + /** + * Sets the createdBy property value. Identity of the user, device, or applicationthat created the item. Read-only. + * @param value Value to set for the createdBy property. + */ + public void setCreatedBy(@jakarta.annotation.Nullable final IdentitySet value) { + this.backingStore.set("createdBy", value); + } + /** + * Sets the createdDateTime property value. Date and time of item 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 lastModifiedBy property value. Identity of the user, device, or application that modified the item. Read-only. + * @param value Value to set for the lastModifiedBy property. + */ + public void setLastModifiedBy(@jakarta.annotation.Nullable final IdentitySet value) { + this.backingStore.set("lastModifiedBy", value); + } + /** + * Sets the lastModifiedDateTime property value. Date and time of item last modification. Read-only. + * @param value Value to set for the lastModifiedDateTime property. + */ + public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastModifiedDateTime", value); + } + /** + * Sets the modelType property value. The type of the contentModel. The possible values are: teachingMethod, layoutMethod, freeformSelectionMethod, prebuiltContractModel, prebuiltInvoiceModel, prebuiltReceiptModel, unknownFutureValue. + * @param value Value to set for the modelType property. + */ + public void setModelType(@jakarta.annotation.Nullable final ContentModelType value) { + this.backingStore.set("modelType", value); + } + /** + * Sets the name property value. The name of the contentModel. + * @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/beta/generated/models/ContentModelCollectionResponse.java b/src/main/java/com/microsoft/graph/beta/generated/models/ContentModelCollectionResponse.java new file mode 100644 index 00000000000..beb23130efb --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ContentModelCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.beta.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 ContentModelCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link ContentModelCollectionResponse} and sets the default values. + */ + public ContentModelCollectionResponse() { + 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 ContentModelCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static ContentModelCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ContentModelCollectionResponse(); + } + /** + * 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(ContentModel::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/beta/generated/models/ContentModelType.java b/src/main/java/com/microsoft/graph/beta/generated/models/ContentModelType.java new file mode 100644 index 00000000000..6e7eaee80eb --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ContentModelType.java @@ -0,0 +1,35 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum ContentModelType implements ValuedEnum { + TeachingMethod("teachingMethod"), + LayoutMethod("layoutMethod"), + FreeformSelectionMethod("freeformSelectionMethod"), + PrebuiltContractModel("prebuiltContractModel"), + PrebuiltInvoiceModel("prebuiltInvoiceModel"), + PrebuiltReceiptModel("prebuiltReceiptModel"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + ContentModelType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static ContentModelType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "teachingMethod": return TeachingMethod; + case "layoutMethod": return LayoutMethod; + case "freeformSelectionMethod": return FreeformSelectionMethod; + case "prebuiltContractModel": return PrebuiltContractModel; + case "prebuiltInvoiceModel": return PrebuiltInvoiceModel; + case "prebuiltReceiptModel": return PrebuiltReceiptModel; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ContentModelUsage.java b/src/main/java/com/microsoft/graph/beta/generated/models/ContentModelUsage.java new file mode 100644 index 00000000000..60992939ed0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ContentModelUsage.java @@ -0,0 +1,227 @@ +package com.microsoft.graph.beta.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.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContentModelUsage implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ContentModelUsage} and sets the default values. + */ + public ContentModelUsage() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ContentModelUsage} + */ + @jakarta.annotation.Nonnull + public static ContentModelUsage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ContentModelUsage(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the createdBy property value. Identity of the user, device, or application that first applied the contentModel to the library. + * @return a {@link IdentitySet} + */ + @jakarta.annotation.Nullable + public IdentitySet getCreatedBy() { + return this.backingStore.get("createdBy"); + } + /** + * Gets the createdDateTime property value. Date and time of the contentModel is first applied. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } + /** + * Gets the driveId property value. The ID of the drive where the contentModel is applied. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * 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("createdBy", (n) -> { this.setCreatedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); + deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("driveId", (n) -> { this.setDriveId(n.getStringValue()); }); + deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); }); + deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("modelId", (n) -> { this.setModelId(n.getStringValue()); }); + deserializerMap.put("modelVersion", (n) -> { this.setModelVersion(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the lastModifiedBy property value. Identity of the user, device, or application that last applied the contentModel to the library. + * @return a {@link IdentitySet} + */ + @jakarta.annotation.Nullable + public IdentitySet getLastModifiedBy() { + return this.backingStore.get("lastModifiedBy"); + } + /** + * Gets the lastModifiedDateTime property value. Date and time of the contentModel is last applied. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastModifiedDateTime() { + return this.backingStore.get("lastModifiedDateTime"); + } + /** + * Gets the modelId property value. The ID of the contentModel. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getModelId() { + return this.backingStore.get("modelId"); + } + /** + * Gets the modelVersion property value. The version of the current applied contentModel. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getModelVersion() { + return this.backingStore.get("modelVersion"); + } + /** + * 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("createdBy", this.getCreatedBy()); + writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + writer.writeStringValue("driveId", this.getDriveId()); + writer.writeObjectValue("lastModifiedBy", this.getLastModifiedBy()); + writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime()); + writer.writeStringValue("modelId", this.getModelId()); + writer.writeStringValue("modelVersion", this.getModelVersion()); + 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 createdBy property value. Identity of the user, device, or application that first applied the contentModel to the library. + * @param value Value to set for the createdBy property. + */ + public void setCreatedBy(@jakarta.annotation.Nullable final IdentitySet value) { + this.backingStore.set("createdBy", value); + } + /** + * Sets the createdDateTime property value. Date and time of the contentModel is first applied. + * @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 driveId property value. The ID of the drive where the contentModel is applied. + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } + /** + * Sets the lastModifiedBy property value. Identity of the user, device, or application that last applied the contentModel to the library. + * @param value Value to set for the lastModifiedBy property. + */ + public void setLastModifiedBy(@jakarta.annotation.Nullable final IdentitySet value) { + this.backingStore.set("lastModifiedBy", value); + } + /** + * Sets the lastModifiedDateTime property value. Date and time of the contentModel is last applied. + * @param value Value to set for the lastModifiedDateTime property. + */ + public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastModifiedDateTime", value); + } + /** + * Sets the modelId property value. The ID of the contentModel. + * @param value Value to set for the modelId property. + */ + public void setModelId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("modelId", value); + } + /** + * Sets the modelVersion property value. The version of the current applied contentModel. + * @param value Value to set for the modelVersion property. + */ + public void setModelVersion(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("modelVersion", 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/beta/generated/models/CustomAppManagementConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/CustomAppManagementConfiguration.java new file mode 100644 index 00000000000..f1dfc36ec11 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/CustomAppManagementConfiguration.java @@ -0,0 +1,45 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CustomAppManagementConfiguration extends AppManagementConfiguration implements Parsable { + /** + * Instantiates a new {@link CustomAppManagementConfiguration} and sets the default values. + */ + public CustomAppManagementConfiguration() { + super(); + this.setOdataType("#microsoft.graph.customAppManagementConfiguration"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CustomAppManagementConfiguration} + */ + @jakarta.annotation.Nonnull + public static CustomAppManagementConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CustomAppManagementConfiguration(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + return deserializerMap; + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Device.java b/src/main/java/com/microsoft/graph/beta/generated/models/Device.java index 85d15310a85..5f794cd4eb7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/Device.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Device.java @@ -131,7 +131,7 @@ public String getEnrollmentProfileName() { return this.backingStore.get("enrollmentProfileName"); } /** - * Gets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement. + * Gets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement, windowsAzureADJoinUsingDeviceAuth,appleUserEnrollment, appleUserEnrollmentWithServiceAccount. NOTE: This property might return other values apart from those listed. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -232,7 +232,7 @@ public Boolean getIsManaged() { return this.backingStore.get("isManaged"); } /** - * Gets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a device that's a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. + * Gets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit. The default value is false. Read-only. To manage a device that's a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -575,7 +575,7 @@ public void setEnrollmentProfileName(@jakarta.annotation.Nullable final String v this.backingStore.set("enrollmentProfileName", value); } /** - * Sets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement. + * Sets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement, windowsAzureADJoinUsingDeviceAuth,appleUserEnrollment, appleUserEnrollmentWithServiceAccount. NOTE: This property might return other values apart from those listed. * @param value Value to set for the enrollmentType property. */ public void setEnrollmentType(@jakarta.annotation.Nullable final String value) { @@ -617,7 +617,7 @@ public void setIsManaged(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isManaged", value); } /** - * Sets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a device that's a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. + * Sets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit. The default value is false. Read-only. To manage a device that's a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. * @param value Value to set for the isManagementRestricted property. */ public void setIsManagementRestricted(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceActionResult.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceActionResult.java index 5580da57296..fb6d5209a9c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceActionResult.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceActionResult.java @@ -41,6 +41,7 @@ public static DeviceActionResult createFromDiscriminatorValue(@jakarta.annotatio final String mappingValue = mappingValueNode.getStringValue(); switch (mappingValue) { case "#microsoft.graph.activateDeviceEsimActionResult": return new ActivateDeviceEsimActionResult(); + case "#microsoft.graph.changeAssignmentsActionResult": return new ChangeAssignmentsActionResult(); case "#microsoft.graph.configurationManagerActionResult": return new ConfigurationManagerActionResult(); case "#microsoft.graph.deleteUserFromSharedAppleDeviceActionResult": return new DeleteUserFromSharedAppleDeviceActionResult(); case "#microsoft.graph.locateDeviceActionResult": return new LocateDeviceActionResult(); diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItem.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItem.java new file mode 100644 index 00000000000..25fcf8a9279 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItem.java @@ -0,0 +1,275 @@ +package com.microsoft.graph.beta.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.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Represents the application or configuration included in the ChangeAssignments action execution or result. For action execution, it represents the application or configuration intended to be uninstalled or removed on the managed device. For action result, it represents the live reporting data for this application or configuration regarding its removal or restoration process. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DeviceAssignmentItem implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link DeviceAssignmentItem} and sets the default values. + */ + public DeviceAssignmentItem() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link DeviceAssignmentItem} + */ + @jakarta.annotation.Nonnull + public static DeviceAssignmentItem createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new DeviceAssignmentItem(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the assignmentItemActionIntent property value. A list of possible assignment item action intent values on the application or configuration when executing this action on the managed device. For example, if the application or configuration is intended to be removed on the managed device, then the intent value is remove, and if the application or configuration already under removal through previous actions and is now intended to be restored on the managed device, then the intent value is restore + * @return a {@link DeviceAssignmentItemIntent} + */ + @jakarta.annotation.Nullable + public DeviceAssignmentItemIntent getAssignmentItemActionIntent() { + return this.backingStore.get("assignmentItemActionIntent"); + } + /** + * Gets the assignmentItemActionStatus property value. A list of possible assignment item action status values for the application or configuration regarding their executed action on the managed device. For example, a configuration included in the deviceAssignmentItems list has just been executed the action. Its status starts with inProgress until it's successfully removed to reflect as removed status or failed to be removed to reflect as error status on the managed device. Similar status change happens for restoration process + * @return a {@link DeviceAssignmentItemStatus} + */ + @jakarta.annotation.Nullable + public DeviceAssignmentItemStatus getAssignmentItemActionStatus() { + return this.backingStore.get("assignmentItemActionStatus"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the errorCode property value. The error code for the application or configuration regarding the failed executed action on the managed device. Read-Only. Returned in the action result. 0 is default value and indicates no failure. Valid values -9.22337203685478E+18 to 9.22337203685478E+18. This property is read-only. + * @return a {@link Long} + */ + @jakarta.annotation.Nullable + public Long getErrorCode() { + return this.backingStore.get("errorCode"); + } + /** + * 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("assignmentItemActionIntent", (n) -> { this.setAssignmentItemActionIntent(n.getEnumValue(DeviceAssignmentItemIntent::forValue)); }); + deserializerMap.put("assignmentItemActionStatus", (n) -> { this.setAssignmentItemActionStatus(n.getEnumValue(DeviceAssignmentItemStatus::forValue)); }); + deserializerMap.put("errorCode", (n) -> { this.setErrorCode(n.getLongValue()); }); + deserializerMap.put("intentActionMessage", (n) -> { this.setIntentActionMessage(n.getStringValue()); }); + deserializerMap.put("itemDisplayName", (n) -> { this.setItemDisplayName(n.getStringValue()); }); + deserializerMap.put("itemId", (n) -> { this.setItemId(n.getStringValue()); }); + deserializerMap.put("itemSubTypeDisplayName", (n) -> { this.setItemSubTypeDisplayName(n.getStringValue()); }); + deserializerMap.put("itemType", (n) -> { this.setItemType(n.getEnumValue(DeviceAssignmentItemType::forValue)); }); + deserializerMap.put("lastActionDateTime", (n) -> { this.setLastActionDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the intentActionMessage property value. The intent action message for the application or configuration regarding the executed action on the managed device. When the action is on error, this property provides message on the reason of failure. When the action is in progress, this property provides message on what's being processed on the device. Read-Only. Returned in the action result. Can be null. Max length is 1500. This property is read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getIntentActionMessage() { + return this.backingStore.get("intentActionMessage"); + } + /** + * Gets the itemDisplayName property value. The item displayName name for the application or configuration. Read-Only. Returned in the action result. Default value is null. The property value cannot be modified and is automatically populated with the action result. Max length is 200. This property is read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getItemDisplayName() { + return this.backingStore.get("itemDisplayName"); + } + /** + * Gets the itemId property value. The unique identifier for the application or configuration. ItemId is required property which needs to be set in the action POST request parameter for the DeviceAssignmentItem intended to remove. Max length is 40 + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getItemId() { + return this.backingStore.get("itemId"); + } + /** + * Gets the itemSubTypeDisplayName property value. Indicates the specific type for the application or configuration. For example, unknown, application, appConfiguration, exploitProtection, bitLocker, deviceControl, microsoftEdgeBaseline, attackSurfaceReductionRulesConfigMgr, endpointDetectionandResponse, windowsUpdateforBusiness, microsoftDefenderFirewallRules, applicationControl, microsoftDefenderAntivirusexclusions, microsoftDefenderAntivirus, wiredNetwork, derivedPersonalIdentityVerificationCredential, windowsHealthMonitoring, extensions, mxProfileZebraOnly, deviceFirmwareConfigurationInterface, deliveryOptimization, identityProtection, kiosk, overrideGroupPolicy, domainJoinPreview, pkcsImportedCertificate, networkBoundary, endpointProtection, microsoftDefenderAtpWindows10Desktop, sharedMultiUserDevice, deviceFeatures, secureAssessmentEducation, wiFiImport, editionUpgradeAndModeSwitch, vpn, custom, softwareUpdates, deviceRestrictionsWindows10Team, email, trustedCertificate, scepCertificate, emailSamsungKnoxOnly, pkcsCertificate, deviceRestrictions, wiFi, settingsCatalog. Read-Only. Returned in the action result. Default value is null. The property value cannot be modified and is automatically populated with the action result. Max length is 200. This property is read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getItemSubTypeDisplayName() { + return this.backingStore.get("itemSubTypeDisplayName"); + } + /** + * Gets the itemType property value. A list of possible device assignment item types to execute this action on the managed device. Device assignment item represents existing assigned Intune resource such as application or configuration. Currently supported device assignment item types are Application, DeviceConfiguration, DeviceManagementConfigurationPolicy and MobileAppConfiguration + * @return a {@link DeviceAssignmentItemType} + */ + @jakarta.annotation.Nullable + public DeviceAssignmentItemType getItemType() { + return this.backingStore.get("itemType"); + } + /** + * Gets the lastActionDateTime property value. The date and time when the application or configuration was initiated an action execution. Read-Only. Returned in the action result. The property value cannot be modified and is automatically populated when the action is initiated. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2025 would look like this: '2025-01-01T00:00:00Z'. This property is read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastActionDateTime() { + return this.backingStore.get("lastActionDateTime"); + } + /** + * Gets the lastModifiedDateTime property value. The date and time when the application or configuration was last modified because of either action execution or status change. Read-Only. Returned in the action result. The property value cannot be modified and is automatically populated when the action is initiated or the device has a status change. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2025 would look like this: '2025-01-01T00:00:00Z'. This property is read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getLastModifiedDateTime() { + return this.backingStore.get("lastModifiedDateTime"); + } + /** + * 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("assignmentItemActionIntent", this.getAssignmentItemActionIntent()); + writer.writeEnumValue("assignmentItemActionStatus", this.getAssignmentItemActionStatus()); + writer.writeStringValue("itemId", this.getItemId()); + writer.writeEnumValue("itemType", this.getItemType()); + 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 assignmentItemActionIntent property value. A list of possible assignment item action intent values on the application or configuration when executing this action on the managed device. For example, if the application or configuration is intended to be removed on the managed device, then the intent value is remove, and if the application or configuration already under removal through previous actions and is now intended to be restored on the managed device, then the intent value is restore + * @param value Value to set for the assignmentItemActionIntent property. + */ + public void setAssignmentItemActionIntent(@jakarta.annotation.Nullable final DeviceAssignmentItemIntent value) { + this.backingStore.set("assignmentItemActionIntent", value); + } + /** + * Sets the assignmentItemActionStatus property value. A list of possible assignment item action status values for the application or configuration regarding their executed action on the managed device. For example, a configuration included in the deviceAssignmentItems list has just been executed the action. Its status starts with inProgress until it's successfully removed to reflect as removed status or failed to be removed to reflect as error status on the managed device. Similar status change happens for restoration process + * @param value Value to set for the assignmentItemActionStatus property. + */ + public void setAssignmentItemActionStatus(@jakarta.annotation.Nullable final DeviceAssignmentItemStatus value) { + this.backingStore.set("assignmentItemActionStatus", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the errorCode property value. The error code for the application or configuration regarding the failed executed action on the managed device. Read-Only. Returned in the action result. 0 is default value and indicates no failure. Valid values -9.22337203685478E+18 to 9.22337203685478E+18. This property is read-only. + * @param value Value to set for the errorCode property. + */ + public void setErrorCode(@jakarta.annotation.Nullable final Long value) { + this.backingStore.set("errorCode", value); + } + /** + * Sets the intentActionMessage property value. The intent action message for the application or configuration regarding the executed action on the managed device. When the action is on error, this property provides message on the reason of failure. When the action is in progress, this property provides message on what's being processed on the device. Read-Only. Returned in the action result. Can be null. Max length is 1500. This property is read-only. + * @param value Value to set for the intentActionMessage property. + */ + public void setIntentActionMessage(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("intentActionMessage", value); + } + /** + * Sets the itemDisplayName property value. The item displayName name for the application or configuration. Read-Only. Returned in the action result. Default value is null. The property value cannot be modified and is automatically populated with the action result. Max length is 200. This property is read-only. + * @param value Value to set for the itemDisplayName property. + */ + public void setItemDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("itemDisplayName", value); + } + /** + * Sets the itemId property value. The unique identifier for the application or configuration. ItemId is required property which needs to be set in the action POST request parameter for the DeviceAssignmentItem intended to remove. Max length is 40 + * @param value Value to set for the itemId property. + */ + public void setItemId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("itemId", value); + } + /** + * Sets the itemSubTypeDisplayName property value. Indicates the specific type for the application or configuration. For example, unknown, application, appConfiguration, exploitProtection, bitLocker, deviceControl, microsoftEdgeBaseline, attackSurfaceReductionRulesConfigMgr, endpointDetectionandResponse, windowsUpdateforBusiness, microsoftDefenderFirewallRules, applicationControl, microsoftDefenderAntivirusexclusions, microsoftDefenderAntivirus, wiredNetwork, derivedPersonalIdentityVerificationCredential, windowsHealthMonitoring, extensions, mxProfileZebraOnly, deviceFirmwareConfigurationInterface, deliveryOptimization, identityProtection, kiosk, overrideGroupPolicy, domainJoinPreview, pkcsImportedCertificate, networkBoundary, endpointProtection, microsoftDefenderAtpWindows10Desktop, sharedMultiUserDevice, deviceFeatures, secureAssessmentEducation, wiFiImport, editionUpgradeAndModeSwitch, vpn, custom, softwareUpdates, deviceRestrictionsWindows10Team, email, trustedCertificate, scepCertificate, emailSamsungKnoxOnly, pkcsCertificate, deviceRestrictions, wiFi, settingsCatalog. Read-Only. Returned in the action result. Default value is null. The property value cannot be modified and is automatically populated with the action result. Max length is 200. This property is read-only. + * @param value Value to set for the itemSubTypeDisplayName property. + */ + public void setItemSubTypeDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("itemSubTypeDisplayName", value); + } + /** + * Sets the itemType property value. A list of possible device assignment item types to execute this action on the managed device. Device assignment item represents existing assigned Intune resource such as application or configuration. Currently supported device assignment item types are Application, DeviceConfiguration, DeviceManagementConfigurationPolicy and MobileAppConfiguration + * @param value Value to set for the itemType property. + */ + public void setItemType(@jakarta.annotation.Nullable final DeviceAssignmentItemType value) { + this.backingStore.set("itemType", value); + } + /** + * Sets the lastActionDateTime property value. The date and time when the application or configuration was initiated an action execution. Read-Only. Returned in the action result. The property value cannot be modified and is automatically populated when the action is initiated. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2025 would look like this: '2025-01-01T00:00:00Z'. This property is read-only. + * @param value Value to set for the lastActionDateTime property. + */ + public void setLastActionDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastActionDateTime", value); + } + /** + * Sets the lastModifiedDateTime property value. The date and time when the application or configuration was last modified because of either action execution or status change. Read-Only. Returned in the action result. The property value cannot be modified and is automatically populated when the action is initiated or the device has a status change. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2025 would look like this: '2025-01-01T00:00:00Z'. This property is read-only. + * @param value Value to set for the lastModifiedDateTime property. + */ + public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("lastModifiedDateTime", 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/beta/generated/models/DeviceAssignmentItemIntent.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItemIntent.java new file mode 100644 index 00000000000..9a54215e907 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItemIntent.java @@ -0,0 +1,33 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +/** + * A list of possible assignment item action intent values on the application or configuration when executing this action on the managed device. For example, if the application or configuration is intended to be removed on the managed device, then the intent value is remove, and if the application or configuration already under removal through previous actions and is now intended to be restored on the managed device, then the intent value is restore + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum DeviceAssignmentItemIntent implements ValuedEnum { + /** Default. Indicates that the deployed application or configuration is intended to be removed on the managed device */ + Remove("remove"), + /** Indicates that the application or configuration already under removal through previous actions and is now intended to be restored on the managed device */ + Restore("restore"), + /** Evolvable enumeration sentinel value. Do not use */ + UnknownFutureValue("unknownFutureValue"); + public final String value; + DeviceAssignmentItemIntent(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static DeviceAssignmentItemIntent forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "remove": return Remove; + case "restore": return Restore; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItemStatus.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItemStatus.java new file mode 100644 index 00000000000..dbbb908e4ea --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItemStatus.java @@ -0,0 +1,42 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +/** + * A list of possible assignment item action status values for the application or configuration regarding their executed action on the managed device. For example, a configuration included in the deviceAssignmentItems list has just been executed the action. Its status starts with inProgress until it's successfully removed to reflect as removed status or failed to be removed to reflect as error status on the managed device. Similar status change happens for restoration process + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum DeviceAssignmentItemStatus implements ValuedEnum { + /** Default. Indicates that the device assignment action to remove or restore an application or a configuration is 'initiated' on the managed device */ + Initiated("initiated"), + /** Indicates that the device assignment action to remove or restore an application or a configuration is 'in progress' on the managed device */ + InProgress("inProgress"), + /** Indicates that the application or configuration has been successfully removed on the managed device */ + Removed("removed"), + /** Indicates that the application or configuration has failed to be removed or restored on the managed device. The error may be retriable depending on the intent action message and error code */ + Error("error"), + /** Indicates that the application or configuration has been successfully restored on the managed device */ + Succeeded("succeeded"), + /** Evolvable enumeration sentinel value. Do not use */ + UnknownFutureValue("unknownFutureValue"); + public final String value; + DeviceAssignmentItemStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static DeviceAssignmentItemStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "initiated": return Initiated; + case "inProgress": return InProgress; + case "removed": return Removed; + case "error": return Error; + case "succeeded": return Succeeded; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItemType.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItemType.java new file mode 100644 index 00000000000..d75034e7d4e --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceAssignmentItemType.java @@ -0,0 +1,39 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +/** + * A list of possible device assignment item types to execute this action on the managed device. Device assignment item represents existing assigned Intune resource such as application or configuration. Currently supported device assignment item types are Application, DeviceConfiguration, DeviceManagementConfigurationPolicy and MobileAppConfiguration + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum DeviceAssignmentItemType implements ValuedEnum { + /** Default. Indicates that the device assignment item type for the action is graph.mobileApp. Application is uninstalled on removal and installed back on restoration */ + Application("application"), + /** Indicates that the device assignment item type for the action is graph.deviceConfiguration. DeviceConfiguration associated settings are removed on removal and added back on restoration */ + DeviceConfiguration("deviceConfiguration"), + /** Indicates that the device assignment item type for the action is graph.deviceManagementConfigurationPolicy. DeviceManagementConfigurationPolicy associated settings are removed on removal and added back on restoration */ + DeviceManagementConfigurationPolicy("deviceManagementConfigurationPolicy"), + /** Indicates that the device assignment item type for the action is `graph.managedDeviceMobileAppConfiguration`. MobileAppConfiguration associated settings are removed on removal and added back on restoration */ + MobileAppConfiguration("mobileAppConfiguration"), + /** Evolvable enumeration sentinel value. Do not use */ + UnknownFutureValue("unknownFutureValue"); + public final String value; + DeviceAssignmentItemType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static DeviceAssignmentItemType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "application": return Application; + case "deviceConfiguration": return DeviceConfiguration; + case "deviceManagementConfigurationPolicy": return DeviceManagementConfigurationPolicy; + case "mobileAppConfiguration": return MobileAppConfiguration; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceCompliancePolicy.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceCompliancePolicy.java index 8ee264d9149..c281082874b 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceCompliancePolicy.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceCompliancePolicy.java @@ -141,7 +141,7 @@ public java.util.List getRoleScopeTagIds() { return this.backingStore.get("roleScopeTagIds"); } /** - * Gets the scheduledActionsForRule property value. The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * Gets the scheduledActionsForRule property value. The list of scheduled action for this rule * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -257,7 +257,7 @@ public void setRoleScopeTagIds(@jakarta.annotation.Nullable final java.util.List this.backingStore.set("roleScopeTagIds", value); } /** - * Sets the scheduledActionsForRule property value. The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies. + * Sets the scheduledActionsForRule property value. The list of scheduled action for this rule * @param value Value to set for the scheduledActionsForRule property. */ public void setScheduledActionsForRule(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceDetail.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceDetail.java index 83ed390da93..0ced2e889f6 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceDetail.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceDetail.java @@ -56,7 +56,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the browser property value. Indicates the browser information of the used for signing-in. + * Gets the browser property value. Indicates the browser information of the used in the sign-in. Populated for devices registered in Microsoft Entra. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public String getBrowserId() { return this.backingStore.get("browserId"); } /** - * Gets the deviceId property value. Refers to the UniqueID of the device used for signing-in. + * Gets the deviceId property value. Refers to the unique ID of the device used in the sign-in. Populated for devices registered in Microsoft Entra. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -80,7 +80,7 @@ public String getDeviceId() { return this.backingStore.get("deviceId"); } /** - * Gets the displayName property value. Refers to the name of the device used for signing-in. + * Gets the displayName property value. Refers to the name of the device used in the sign-in. Populated for devices registered in Microsoft Entra. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -130,7 +130,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the operatingSystem property value. Indicates the OS name and version used for signing-in. + * Gets the operatingSystem property value. Indicates the OS name and version used in the sign-in. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -138,7 +138,7 @@ public String getOperatingSystem() { return this.backingStore.get("operatingSystem"); } /** - * Gets the trustType property value. Indicates information on whether the signed-in device is Workplace Joined, AzureAD Joined, Domain Joined. + * Gets the trustType property value. Indicates information on whether the device used in the sign-in is workplace-joined, Microsoft Entra-joined, domain-joined. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -178,7 +178,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the browser property value. Indicates the browser information of the used for signing-in. + * Sets the browser property value. Indicates the browser information of the used in the sign-in. Populated for devices registered in Microsoft Entra. * @param value Value to set for the browser property. */ public void setBrowser(@jakarta.annotation.Nullable final String value) { @@ -192,14 +192,14 @@ public void setBrowserId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("browserId", value); } /** - * Sets the deviceId property value. Refers to the UniqueID of the device used for signing-in. + * Sets the deviceId property value. Refers to the unique ID of the device used in the sign-in. Populated for devices registered in Microsoft Entra. * @param value Value to set for the deviceId property. */ public void setDeviceId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("deviceId", value); } /** - * Sets the displayName property value. Refers to the name of the device used for signing-in. + * Sets the displayName property value. Refers to the name of the device used in the sign-in. Populated for devices registered in Microsoft Entra. * @param value Value to set for the displayName property. */ public void setDisplayName(@jakarta.annotation.Nullable final String value) { @@ -227,14 +227,14 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the operatingSystem property value. Indicates the OS name and version used for signing-in. + * Sets the operatingSystem property value. Indicates the OS name and version used in the sign-in. * @param value Value to set for the operatingSystem property. */ public void setOperatingSystem(@jakarta.annotation.Nullable final String value) { this.backingStore.set("operatingSystem", value); } /** - * Sets the trustType property value. Indicates information on whether the signed-in device is Workplace Joined, AzureAD Joined, Domain Joined. + * Sets the trustType property value. Indicates information on whether the device used in the sign-in is workplace-joined, Microsoft Entra-joined, domain-joined. * @param value Value to set for the trustType property. */ public void setTrustType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagement.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagement.java index 3b2c1096e70..4625241e8e3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagement.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagement.java @@ -639,6 +639,7 @@ public Map> getFieldDeserializers deserializerMap.put("managedDeviceEncryptionStates", (n) -> { this.setManagedDeviceEncryptionStates(n.getCollectionOfObjectValues(ManagedDeviceEncryptionState::createFromDiscriminatorValue)); }); deserializerMap.put("managedDeviceOverview", (n) -> { this.setManagedDeviceOverview(n.getObjectValue(ManagedDeviceOverview::createFromDiscriminatorValue)); }); deserializerMap.put("managedDevices", (n) -> { this.setManagedDevices(n.getCollectionOfObjectValues(ManagedDevice::createFromDiscriminatorValue)); }); + deserializerMap.put("managedDeviceWindowsOSImages", (n) -> { this.setManagedDeviceWindowsOSImages(n.getCollectionOfObjectValues(ManagedDeviceWindowsOperatingSystemImage::createFromDiscriminatorValue)); }); deserializerMap.put("maximumDepTokens", (n) -> { this.setMaximumDepTokens(n.getIntegerValue()); }); deserializerMap.put("microsoftTunnelConfigurations", (n) -> { this.setMicrosoftTunnelConfigurations(n.getCollectionOfObjectValues(MicrosoftTunnelConfiguration::createFromDiscriminatorValue)); }); deserializerMap.put("microsoftTunnelHealthThresholds", (n) -> { this.setMicrosoftTunnelHealthThresholds(n.getCollectionOfObjectValues(MicrosoftTunnelHealthThreshold::createFromDiscriminatorValue)); }); @@ -942,6 +943,14 @@ public ManagedDeviceOverview getManagedDeviceOverview() { public java.util.List getManagedDevices() { return this.backingStore.get("managedDevices"); } + /** + * Gets the managedDeviceWindowsOSImages property value. A list of ManagedDeviceWindowsOperatingSystemImages + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getManagedDeviceWindowsOSImages() { + return this.backingStore.get("managedDeviceWindowsOSImages"); + } /** * Gets the maximumDepTokens property value. Maximum number of DEP tokens allowed per-tenant. * @return a {@link Integer} @@ -1843,6 +1852,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("managedDeviceEncryptionStates", this.getManagedDeviceEncryptionStates()); writer.writeObjectValue("managedDeviceOverview", this.getManagedDeviceOverview()); writer.writeCollectionOfObjectValues("managedDevices", this.getManagedDevices()); + writer.writeCollectionOfObjectValues("managedDeviceWindowsOSImages", this.getManagedDeviceWindowsOSImages()); writer.writeIntegerValue("maximumDepTokens", this.getMaximumDepTokens()); writer.writeCollectionOfObjectValues("microsoftTunnelConfigurations", this.getMicrosoftTunnelConfigurations()); writer.writeCollectionOfObjectValues("microsoftTunnelHealthThresholds", this.getMicrosoftTunnelHealthThresholds()); @@ -2567,6 +2577,13 @@ public void setManagedDeviceOverview(@jakarta.annotation.Nullable final ManagedD public void setManagedDevices(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("managedDevices", value); } + /** + * Sets the managedDeviceWindowsOSImages property value. A list of ManagedDeviceWindowsOperatingSystemImages + * @param value Value to set for the managedDeviceWindowsOSImages property. + */ + public void setManagedDeviceWindowsOSImages(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("managedDeviceWindowsOSImages", value); + } /** * Sets the maximumDepTokens property value. Maximum number of DEP tokens allowed per-tenant. * @param value Value to set for the maximumDepTokens property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationChoiceSettingCollectionDefinition.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationChoiceSettingCollectionDefinition.java index 97d5d33be1d..9c837b112dc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationChoiceSettingCollectionDefinition.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationChoiceSettingCollectionDefinition.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the maximumCount property value. Maximum number of choices in the collection + * Gets the maximumCount property value. Maximum number of choices in the collection. Valid values 1 to 100 * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -44,7 +44,7 @@ public Integer getMaximumCount() { return this.backingStore.get("maximumCount"); } /** - * Gets the minimumCount property value. Minimum number of choices in the collection + * Gets the minimumCount property value. Minimum number of choices in the collection. Valid values 1 to 100 * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -62,14 +62,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeIntegerValue("minimumCount", this.getMinimumCount()); } /** - * Sets the maximumCount property value. Maximum number of choices in the collection + * Sets the maximumCount property value. Maximum number of choices in the collection. Valid values 1 to 100 * @param value Value to set for the maximumCount property. */ public void setMaximumCount(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("maximumCount", value); } /** - * Sets the minimumCount property value. Minimum number of choices in the collection + * Sets the minimumCount property value. Minimum number of choices in the collection. Valid values 1 to 100 * @param value Value to set for the minimumCount property. */ public void setMinimumCount(@jakarta.annotation.Nullable final Integer value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationReferredSettingInformation.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationReferredSettingInformation.java index 1e8ca805d9e..b3ec96f2168 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationReferredSettingInformation.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationReferredSettingInformation.java @@ -78,7 +78,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. + * Gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting * @return a {@link String} */ @jakarta.annotation.Nullable @@ -118,7 +118,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. + * Sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting * @param value Value to set for the settingDefinitionId property. */ public void setSettingDefinitionId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationSettingDefinition.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationSettingDefinition.java index b4327f3ada0..3672dabe4fb 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationSettingDefinition.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationSettingDefinition.java @@ -47,7 +47,7 @@ public EnumSet getAccessTypes() return this.backingStore.get("accessTypes"); } /** - * Gets the applicability property value. Details which device setting is applicable on. Supports: $filters. + * Gets the applicability property value. Details which device setting is applicable on * @return a {@link DeviceManagementConfigurationSettingApplicability} */ @jakarta.annotation.Nullable @@ -63,7 +63,7 @@ public String getBaseUri() { return this.backingStore.get("baseUri"); } /** - * Gets the categoryId property value. Specify category in which the setting is under. Support $filters. + * Gets the categoryId property value. Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) * @return a {@link String} */ @jakarta.annotation.Nullable @@ -71,7 +71,7 @@ public String getCategoryId() { return this.backingStore.get("categoryId"); } /** - * Gets the description property value. Description of the setting. + * Gets the description property value. Description of the item * @return a {@link String} */ @jakarta.annotation.Nullable @@ -79,7 +79,7 @@ public String getDescription() { return this.backingStore.get("description"); } /** - * Gets the displayName property value. Name of the setting. For example: Allow Toast. + * Gets the displayName property value. Display name of the item * @return a {@link String} */ @jakarta.annotation.Nullable @@ -114,7 +114,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the helpText property value. Help text of the setting. Give more details of the setting. + * Gets the helpText property value. Help text of the item * @return a {@link String} */ @jakarta.annotation.Nullable @@ -122,7 +122,7 @@ public String getHelpText() { return this.backingStore.get("helpText"); } /** - * Gets the infoUrls property value. List of links more info for the setting can be found at. + * Gets the infoUrls property value. List of links more info for the setting can be found at * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -170,7 +170,7 @@ public java.util.List g return this.backingStore.get("referredSettingInformationList"); } /** - * Gets the rootDefinitionId property value. Root setting definition id if the setting is a child setting. + * Gets the rootDefinitionId property value. Root setting definition if the setting is a child setting. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -243,7 +243,7 @@ public void setAccessTypes(@jakarta.annotation.Nullable final EnumSet value) { @@ -327,7 +327,7 @@ public void setReferredSettingInformationList(@jakarta.annotation.Nullable final this.backingStore.set("referredSettingInformationList", value); } /** - * Sets the rootDefinitionId property value. Root setting definition id if the setting is a child setting. + * Sets the rootDefinitionId property value. Root setting definition if the setting is a child setting. * @param value Value to set for the rootDefinitionId property. */ public void setRootDefinitionId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationSettingGroupDefinition.java b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationSettingGroupDefinition.java index 629aa1a1f46..5a76fa8aeb5 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationSettingGroupDefinition.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DeviceManagementConfigurationSettingGroupDefinition.java @@ -32,7 +32,7 @@ public static DeviceManagementConfigurationSettingGroupDefinition createFromDisc return new DeviceManagementConfigurationSettingGroupDefinition(); } /** - * Gets the childIds property value. Dependent child settings to this group of settings + * Gets the childIds property value. Dependent child settings to this group of settings. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -79,7 +79,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("dependentOn", this.getDependentOn()); } /** - * Sets the childIds property value. Dependent child settings to this group of settings + * Sets the childIds property value. Dependent child settings to this group of settings. * @param value Value to set for the childIds property. */ public void setChildIds(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJob.java b/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJob.java new file mode 100644 index 00000000000..8f9038502ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJob.java @@ -0,0 +1,113 @@ +package com.microsoft.graph.beta.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; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DocumentProcessingJob extends Entity implements Parsable { + /** + * Instantiates a new {@link DocumentProcessingJob} and sets the default values. + */ + public DocumentProcessingJob() { + 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 DocumentProcessingJob} + */ + @jakarta.annotation.Nonnull + public static DocumentProcessingJob createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new DocumentProcessingJob(); + } + /** + * Gets the createdDateTime property value. Date and time of item creation. Read-only. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getCreatedDateTime() { + return this.backingStore.get("createdDateTime"); + } + /** + * 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("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("jobType", (n) -> { this.setJobType(n.getEnumValue(DocumentProcessingJobType::forValue)); }); + deserializerMap.put("listItemUniqueId", (n) -> { this.setListItemUniqueId(n.getStringValue()); }); + deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(DocumentProcessingJobStatus::forValue)); }); + return deserializerMap; + } + /** + * Gets the jobType property value. The document processing job type. The possible values are: file, folder + * @return a {@link DocumentProcessingJobType} + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobType getJobType() { + return this.backingStore.get("jobType"); + } + /** + * Gets the listItemUniqueId property value. The listItemUniqueId of the file, or folder to process. Use GET driveItem resource operation and read sharepointIds property to get listItemUniqueId. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getListItemUniqueId() { + return this.backingStore.get("listItemUniqueId"); + } + /** + * Gets the status property value. The document processing Job status. The possible values are: inProgress, completed, failed, unknownFutureValue. + * @return a {@link DocumentProcessingJobStatus} + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobStatus getStatus() { + return this.backingStore.get("status"); + } + /** + * Serializes information the 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.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); + writer.writeEnumValue("jobType", this.getJobType()); + writer.writeStringValue("listItemUniqueId", this.getListItemUniqueId()); + writer.writeEnumValue("status", this.getStatus()); + } + /** + * Sets the createdDateTime property value. Date and time of item 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 jobType property value. The document processing job type. The possible values are: file, folder + * @param value Value to set for the jobType property. + */ + public void setJobType(@jakarta.annotation.Nullable final DocumentProcessingJobType value) { + this.backingStore.set("jobType", value); + } + /** + * Sets the listItemUniqueId property value. The listItemUniqueId of the file, or folder to process. Use GET driveItem resource operation and read sharepointIds property to get listItemUniqueId. + * @param value Value to set for the listItemUniqueId property. + */ + public void setListItemUniqueId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("listItemUniqueId", value); + } + /** + * Sets the status property value. The document processing Job status. The possible values are: inProgress, completed, failed, unknownFutureValue. + * @param value Value to set for the status property. + */ + public void setStatus(@jakarta.annotation.Nullable final DocumentProcessingJobStatus value) { + this.backingStore.set("status", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJobCollectionResponse.java b/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJobCollectionResponse.java new file mode 100644 index 00000000000..7484e37a664 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJobCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.beta.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 DocumentProcessingJobCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link DocumentProcessingJobCollectionResponse} and sets the default values. + */ + public DocumentProcessingJobCollectionResponse() { + 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 DocumentProcessingJobCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static DocumentProcessingJobCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new DocumentProcessingJobCollectionResponse(); + } + /** + * 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(DocumentProcessingJob::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/beta/generated/models/DocumentProcessingJobStatus.java b/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJobStatus.java new file mode 100644 index 00000000000..d1b0f517003 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJobStatus.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum DocumentProcessingJobStatus implements ValuedEnum { + InProgress("inProgress"), + Completed("completed"), + Failed("failed"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + DocumentProcessingJobStatus(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static DocumentProcessingJobStatus forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "inProgress": return InProgress; + case "completed": return Completed; + case "failed": return Failed; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJobType.java b/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJobType.java new file mode 100644 index 00000000000..b12098f76c6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/DocumentProcessingJobType.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum DocumentProcessingJobType implements ValuedEnum { + File("file"), + Folder("folder"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + DocumentProcessingJobType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static DocumentProcessingJobType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "file": return File; + case "folder": return Folder; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/EducationRubric.java b/src/main/java/com/microsoft/graph/beta/generated/models/EducationRubric.java index 049c1e20de0..09e7cfeb011 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/EducationRubric.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/EducationRubric.java @@ -34,7 +34,7 @@ public IdentitySet getCreatedBy() { return this.backingStore.get("createdBy"); } /** - * Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * Gets the createdDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -76,7 +76,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the grading property value. The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. + * Gets the grading property value. The grading type of this rubric. You can use null for a no-points rubric or educationAssignmentPointsGradeType for a points rubric. * @return a {@link EducationAssignmentGradeType} */ @jakarta.annotation.Nullable @@ -92,7 +92,7 @@ public IdentitySet getLastModifiedBy() { return this.backingStore.get("lastModifiedBy"); } /** - * Gets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * Gets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -136,7 +136,7 @@ public void setCreatedBy(@jakarta.annotation.Nullable final IdentitySet value) { this.backingStore.set("createdBy", value); } /** - * Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * Sets the createdDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the createdDateTime property. */ public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { @@ -157,7 +157,7 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the grading property value. The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. + * Sets the grading property value. The grading type of this rubric. You can use null for a no-points rubric or educationAssignmentPointsGradeType for a points rubric. * @param value Value to set for the grading property. */ public void setGrading(@jakarta.annotation.Nullable final EducationAssignmentGradeType value) { @@ -171,7 +171,7 @@ public void setLastModifiedBy(@jakarta.annotation.Nullable final IdentitySet val this.backingStore.set("lastModifiedBy", value); } /** - * Sets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * Sets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * @param value Value to set for the lastModifiedDateTime property. */ public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/EmailAuthenticationMethodConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/EmailAuthenticationMethodConfiguration.java index 939d9489146..5e54a366ae6 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/EmailAuthenticationMethodConfiguration.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/EmailAuthenticationMethodConfiguration.java @@ -26,7 +26,7 @@ public static EmailAuthenticationMethodConfiguration createFromDiscriminatorValu return new EmailAuthenticationMethodConfiguration(); } /** - * Gets the allowExternalIdToUseEmailOtp property value. Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who didn't use public preview will automatically have email OTP enabled beginning in October 2021. + * Gets the allowExternalIdToUseEmailOtp property value. Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who didn't use the beta API automatically have email OTP enabled beginning in October 2021. * @return a {@link ExternalEmailOtpState} */ @jakarta.annotation.Nullable @@ -63,7 +63,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("includeTargets", this.getIncludeTargets()); } /** - * Sets the allowExternalIdToUseEmailOtp property value. Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who didn't use public preview will automatically have email OTP enabled beginning in October 2021. + * Sets the allowExternalIdToUseEmailOtp property value. Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who didn't use the beta API automatically have email OTP enabled beginning in October 2021. * @param value Value to set for the allowExternalIdToUseEmailOtp property. */ public void setAllowExternalIdToUseEmailOtp(@jakarta.annotation.Nullable final ExternalEmailOtpState value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/EnrollmentTimeDeviceMembershipTarget.java b/src/main/java/com/microsoft/graph/beta/generated/models/EnrollmentTimeDeviceMembershipTarget.java new file mode 100644 index 00000000000..63fa31e134f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/EnrollmentTimeDeviceMembershipTarget.java @@ -0,0 +1,144 @@ +package com.microsoft.graph.beta.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; +/** + * The EnrollmentTimeDeviceMembershipTarget entity represents the targets that devices will become members of when enrolled with the associated profile. The only device membership targets supported at this time is static security groups. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class EnrollmentTimeDeviceMembershipTarget implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link EnrollmentTimeDeviceMembershipTarget} and sets the default values. + */ + public EnrollmentTimeDeviceMembershipTarget() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link EnrollmentTimeDeviceMembershipTarget} + */ + @jakarta.annotation.Nonnull + public static EnrollmentTimeDeviceMembershipTarget createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new EnrollmentTimeDeviceMembershipTarget(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("targetId", (n) -> { this.setTargetId(n.getStringValue()); }); + deserializerMap.put("targetType", (n) -> { this.setTargetType(n.getEnumValue(EnrollmentTimeDeviceMembershipTargetType::forValue)); }); + 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 targetId property value. The unique identifiers of the targets that devices will become members of when enrolled with the asociated profile. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getTargetId() { + return this.backingStore.get("targetId"); + } + /** + * Gets the targetType property value. Represents the type of the targets that devices will become members of when enrolled with the associated profile. Possible values are staticSecurityGroup. + * @return a {@link EnrollmentTimeDeviceMembershipTargetType} + */ + @jakarta.annotation.Nullable + public EnrollmentTimeDeviceMembershipTargetType getTargetType() { + return this.backingStore.get("targetType"); + } + /** + * Serializes information the current 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.writeStringValue("targetId", this.getTargetId()); + writer.writeEnumValue("targetType", this.getTargetType()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value 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 targetId property value. The unique identifiers of the targets that devices will become members of when enrolled with the asociated profile. + * @param value Value to set for the targetId property. + */ + public void setTargetId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("targetId", value); + } + /** + * Sets the targetType property value. Represents the type of the targets that devices will become members of when enrolled with the associated profile. Possible values are staticSecurityGroup. + * @param value Value to set for the targetType property. + */ + public void setTargetType(@jakarta.annotation.Nullable final EnrollmentTimeDeviceMembershipTargetType value) { + this.backingStore.set("targetType", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/EnrollmentTimeDeviceMembershipTargetType.java b/src/main/java/com/microsoft/graph/beta/generated/models/EnrollmentTimeDeviceMembershipTargetType.java new file mode 100644 index 00000000000..2b8352ea53f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/EnrollmentTimeDeviceMembershipTargetType.java @@ -0,0 +1,33 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +/** + * Represents the type of the targets that devices will become members of when enrolled with the associated profile. Possible values are staticSecurityGroup. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum EnrollmentTimeDeviceMembershipTargetType implements ValuedEnum { + /** Default value. Do not use. */ + Unknown("unknown"), + /** Indicates the device membership target specified refer to static Entra Security Groups. */ + StaticSecurityGroup("staticSecurityGroup"), + /** Evolvable enumeration sentinel value. Do not use. */ + UnknownFutureValue("unknownFutureValue"); + public final String value; + EnrollmentTimeDeviceMembershipTargetType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static EnrollmentTimeDeviceMembershipTargetType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "unknown": return Unknown; + case "staticSecurityGroup": return StaticSecurityGroup; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Entity.java b/src/main/java/com/microsoft/graph/beta/generated/models/Entity.java index 3e399f282ed..afa965c47c5 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/Entity.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Entity.java @@ -13,6 +13,7 @@ import com.microsoft.graph.beta.models.ediscovery.CaseExportOperation; import com.microsoft.graph.beta.models.ediscovery.CaseHoldOperation; import com.microsoft.graph.beta.models.ediscovery.CaseIndexOperation; +import com.microsoft.graph.beta.models.ediscovery.CaseOperation; import com.microsoft.graph.beta.models.ediscovery.CaseSettings; import com.microsoft.graph.beta.models.ediscovery.Custodian; import com.microsoft.graph.beta.models.ediscovery.DataSource; @@ -26,7 +27,6 @@ import com.microsoft.graph.beta.models.ediscovery.ReviewSetQuery; import com.microsoft.graph.beta.models.ediscovery.SourceCollection; import com.microsoft.graph.beta.models.ediscovery.TagOperation; -import com.microsoft.graph.beta.models.ediscovery.UnifiedGroupSource; import com.microsoft.graph.beta.models.externalconnectors.ConnectionOperation; import com.microsoft.graph.beta.models.externalconnectors.ConnectionQuota; import com.microsoft.graph.beta.models.externalconnectors.ExternalActivity; @@ -171,7 +171,6 @@ import com.microsoft.graph.beta.models.security.AuditLogRecord; import com.microsoft.graph.beta.models.security.AuthorityTemplate; import com.microsoft.graph.beta.models.security.CaseEscaped; -import com.microsoft.graph.beta.models.security.CaseOperation; import com.microsoft.graph.beta.models.security.CasesRoot; import com.microsoft.graph.beta.models.security.CategoryTemplate; import com.microsoft.graph.beta.models.security.CitationTemplate; @@ -251,6 +250,7 @@ import com.microsoft.graph.beta.models.security.TriggersRoot; import com.microsoft.graph.beta.models.security.TriggerTypesRoot; import com.microsoft.graph.beta.models.security.UnclassifiedArtifact; +import com.microsoft.graph.beta.models.security.UnifiedGroupSource; import com.microsoft.graph.beta.models.security.UrlThreatSubmission; import com.microsoft.graph.beta.models.security.UserSource; import com.microsoft.graph.beta.models.security.Vulnerability; @@ -664,7 +664,6 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.cloudPcProvisioningPolicyAssignment": return new CloudPcProvisioningPolicyAssignment(); case "#microsoft.graph.cloudPcReports": return new CloudPcReports(); case "#microsoft.graph.cloudPcServicePlan": return new CloudPcServicePlan(); - case "#microsoft.graph.cloudPcSharedUseServicePlan": return new CloudPcSharedUseServicePlan(); case "#microsoft.graph.cloudPcSnapshot": return new CloudPcSnapshot(); case "#microsoft.graph.cloudPcSupportedRegion": return new CloudPcSupportedRegion(); case "#microsoft.graph.cloudPcUserSetting": return new CloudPcUserSetting(); @@ -690,6 +689,7 @@ private static Entity createFromDiscriminatorValue_0(@jakarta.annotation.Nonnull case "#microsoft.graph.contact": return new Contact(); case "#microsoft.graph.contactFolder": return new ContactFolder(); case "#microsoft.graph.contactMergeSuggestions": return new ContactMergeSuggestions(); + case "#microsoft.graph.contentModel": return new ContentModel(); case "#microsoft.graph.contentSharingSession": return new ContentSharingSession(); case "#microsoft.graph.contentType": return new ContentType(); case "#microsoft.graph.continuousAccessEvaluationPolicy": return new ContinuousAccessEvaluationPolicy(); @@ -888,6 +888,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.document": return new Document(); case "#microsoft.graph.documentComment": return new DocumentComment(); case "#microsoft.graph.documentCommentReply": return new DocumentCommentReply(); + case "#microsoft.graph.documentProcessingJob": return new DocumentProcessingJob(); case "#microsoft.graph.documentSetVersion": return new DocumentSetVersion(); case "#microsoft.graph.domain": return new Domain(); case "#microsoft.graph.domainDnsCnameRecord": return new DomainDnsCnameRecord(); @@ -1309,6 +1310,7 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.managedDeviceMobileAppConfigurationUserStatus": return new ManagedDeviceMobileAppConfigurationUserStatus(); case "#microsoft.graph.managedDeviceMobileAppConfigurationUserSummary": return new ManagedDeviceMobileAppConfigurationUserSummary(); case "#microsoft.graph.managedDeviceOverview": return new ManagedDeviceOverview(); + case "#microsoft.graph.managedDeviceWindowsOperatingSystemImage": return new ManagedDeviceWindowsOperatingSystemImage(); case "#microsoft.graph.managedEBook": return new ManagedEBook(); case "#microsoft.graph.managedEBookAssignment": return new ManagedEBookAssignment(); case "#microsoft.graph.managedEBookCategory": return new ManagedEBookCategory(); @@ -1356,8 +1358,6 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull case "#microsoft.graph.managedTenants.windowsProtectionState": return new WindowsProtectionState(); case "#microsoft.graph.mdmWindowsInformationProtectionPolicy": return new MdmWindowsInformationProtectionPolicy(); case "#microsoft.graph.mdmWindowsInformationProtectionPolicyPolicySetItem": return new MdmWindowsInformationProtectionPolicyPolicySetItem(); - case "#microsoft.graph.meetingActivityStatistics": return new MeetingActivityStatistics(); - case "#microsoft.graph.meetingAttendanceReport": return new MeetingAttendanceReport(); } return null; } @@ -1369,6 +1369,8 @@ private static Entity createFromDiscriminatorValue_1(@jakarta.annotation.Nonnull @jakarta.annotation.Nonnull private static Entity createFromDiscriminatorValue_2(@jakarta.annotation.Nonnull final String discriminatorValue) { switch (discriminatorValue) { + case "#microsoft.graph.meetingActivityStatistics": return new MeetingActivityStatistics(); + case "#microsoft.graph.meetingAttendanceReport": return new MeetingAttendanceReport(); case "#microsoft.graph.meetingRegistrant": return new MeetingRegistrant(); case "#microsoft.graph.meetingRegistrantBase": return new MeetingRegistrantBase(); case "#microsoft.graph.meetingRegistration": return new MeetingRegistration(); @@ -1521,6 +1523,7 @@ private static Entity createFromDiscriminatorValue_2(@jakarta.annotation.Nonnull case "#microsoft.graph.organizationalBranding": return new OrganizationalBranding(); case "#microsoft.graph.organizationalBrandingLocalization": return new OrganizationalBrandingLocalization(); case "#microsoft.graph.organizationalBrandingProperties": return new OrganizationalBrandingProperties(); + case "#microsoft.graph.organizationalBrandingTheme": return new OrganizationalBrandingTheme(); case "#microsoft.graph.organizationSettings": return new OrganizationSettings(); case "#microsoft.graph.orgContact": return new OrgContact(); case "#microsoft.graph.outlookCategory": return new OutlookCategory(); @@ -1866,9 +1869,6 @@ private static Entity createFromDiscriminatorValue_2(@jakarta.annotation.Nonnull case "#microsoft.graph.serviceHealthIssue": return new ServiceHealthIssue(); case "#microsoft.graph.serviceLevelAgreementRoot": return new ServiceLevelAgreementRoot(); case "#microsoft.graph.serviceNowConnection": return new ServiceNowConnection(); - case "#microsoft.graph.servicePrincipal": return new ServicePrincipal(); - case "#microsoft.graph.servicePrincipalCreationConditionSet": return new ServicePrincipalCreationConditionSet(); - case "#microsoft.graph.servicePrincipalCreationPolicy": return new ServicePrincipalCreationPolicy(); } return null; } @@ -1880,6 +1880,9 @@ private static Entity createFromDiscriminatorValue_2(@jakarta.annotation.Nonnull @jakarta.annotation.Nonnull private static Entity createFromDiscriminatorValue_3(@jakarta.annotation.Nonnull final String discriminatorValue) { switch (discriminatorValue) { + case "#microsoft.graph.servicePrincipal": return new ServicePrincipal(); + case "#microsoft.graph.servicePrincipalCreationConditionSet": return new ServicePrincipalCreationConditionSet(); + case "#microsoft.graph.servicePrincipalCreationPolicy": return new ServicePrincipalCreationPolicy(); case "#microsoft.graph.servicePrincipalRiskDetection": return new ServicePrincipalRiskDetection(); case "#microsoft.graph.servicePrincipalSignInActivity": return new ServicePrincipalSignInActivity(); case "#microsoft.graph.serviceStorageQuotaBreakdown": return new ServiceStorageQuotaBreakdown(); @@ -2118,6 +2121,7 @@ private static Entity createFromDiscriminatorValue_3(@jakarta.annotation.Nonnull case "#microsoft.graph.userSettings": return new UserSettings(); case "#microsoft.graph.userSignInInsight": return new UserSignInInsight(); case "#microsoft.graph.userSignUpMetric": return new UserSignUpMetric(); + case "#microsoft.graph.userSolutionRoot": return new UserSolutionRoot(); case "#microsoft.graph.userStorage": return new UserStorage(); case "#microsoft.graph.userTeamwork": return new UserTeamwork(); case "#microsoft.graph.userVirtualEventsRoot": return new UserVirtualEventsRoot(); @@ -2326,6 +2330,7 @@ private static Entity createFromDiscriminatorValue_3(@jakarta.annotation.Nonnull case "#microsoft.graph.workbookWorksheet": return new WorkbookWorksheet(); case "#microsoft.graph.workbookWorksheetProtection": return new WorkbookWorksheetProtection(); case "#microsoft.graph.workforceIntegration": return new WorkforceIntegration(); + case "#microsoft.graph.workingTimeSchedule": return new WorkingTimeSchedule(); case "#microsoft.graph.workplaceSensorDevice": return new WorkplaceSensorDevice(); case "#microsoft.graph.workPosition": return new WorkPosition(); case "#microsoft.graph.workspace": return new Workspace(); diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ExclusionGroupAssignmentTarget.java b/src/main/java/com/microsoft/graph/beta/generated/models/ExclusionGroupAssignmentTarget.java index 29c0114d2a3..229ae683fb0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ExclusionGroupAssignmentTarget.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ExclusionGroupAssignmentTarget.java @@ -7,7 +7,7 @@ import java.util.Map; import java.util.Objects; /** - * Represents a group that should be excluded from an assignment. + * The AAD Group we are deploying firmware updates to */ @jakarta.annotation.Generated("com.microsoft.kiota") public class ExclusionGroupAssignmentTarget extends GroupAssignmentTarget implements Parsable { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ExternalUsersSelfServiceSignUpEventsFlow.java b/src/main/java/com/microsoft/graph/beta/generated/models/ExternalUsersSelfServiceSignUpEventsFlow.java index f1ae2173151..3c2c93825fc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ExternalUsersSelfServiceSignUpEventsFlow.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ExternalUsersSelfServiceSignUpEventsFlow.java @@ -65,7 +65,7 @@ public OnAttributeCollectionSubmitHandler getOnAttributeCollectionSubmit() { return this.backingStore.get("onAttributeCollectionSubmit"); } /** - * 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. * @return a {@link OnAuthenticationMethodLoadStartHandler} */ @jakarta.annotation.Nullable @@ -124,7 +124,7 @@ public void setOnAttributeCollectionSubmit(@jakarta.annotation.Nullable final On this.backingStore.set("onAttributeCollectionSubmit", 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. + * 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. Supports $filter (eq). See support for filtering on user flows for syntax information. * @param value Value to set for the onAuthenticationMethodLoadStart property. */ public void setOnAuthenticationMethodLoadStart(@jakarta.annotation.Nullable final OnAuthenticationMethodLoadStartHandler value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Fido2AuthenticationMethod.java b/src/main/java/com/microsoft/graph/beta/generated/models/Fido2AuthenticationMethod.java index 1be35e81dfd..57b90a1990c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/Fido2AuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Fido2AuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -27,7 +26,7 @@ public static Fido2AuthenticationMethod createFromDiscriminatorValue(@jakarta.an return new Fido2AuthenticationMethod(); } /** - * Gets the aaGuid property value. Authenticator Attestation GUID, an identifier that indicates the type (e.g. make and model) of the authenticator. + * Gets the aaGuid property value. Authenticator Attestation GUID, an identifier that indicates the type (such as make and model) of the authenticator. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -35,7 +34,7 @@ public String getAaGuid() { return this.backingStore.get("aaGuid"); } /** - * Gets the attestationCertificates property value. The attestation certificate(s) attached to this security key. + * Gets the attestationCertificates property value. The attestation certificate or certificates attached to this security key. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -50,14 +49,6 @@ public java.util.List getAttestationCertificates() { public AttestationLevel getAttestationLevel() { return this.backingStore.get("attestationLevel"); } - /** - * Gets the createdDateTime property value. The timestamp when this key was registered to the user. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * Gets the displayName property value. The display name of the key as given by the user. * @return a {@link String} @@ -76,9 +67,9 @@ public Map> getFieldDeserializers deserializerMap.put("aaGuid", (n) -> { this.setAaGuid(n.getStringValue()); }); deserializerMap.put("attestationCertificates", (n) -> { this.setAttestationCertificates(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("attestationLevel", (n) -> { this.setAttestationLevel(n.getEnumValue(AttestationLevel::forValue)); }); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("model", (n) -> { this.setModel(n.getStringValue()); }); + deserializerMap.put("publicKeyCredential", (n) -> { this.setPublicKeyCredential(n.getObjectValue(WebauthnPublicKeyCredential::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -89,6 +80,14 @@ public Map> getFieldDeserializers public String getModel() { return this.backingStore.get("model"); } + /** + * Gets the publicKeyCredential property value. Contains the WebAuthn public key credential information being registered. Only used for write requests. This property isn't returned on read operations. + * @return a {@link WebauthnPublicKeyCredential} + */ + @jakarta.annotation.Nullable + public WebauthnPublicKeyCredential getPublicKeyCredential() { + return this.backingStore.get("publicKeyCredential"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -99,19 +98,19 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("aaGuid", this.getAaGuid()); writer.writeCollectionOfPrimitiveValues("attestationCertificates", this.getAttestationCertificates()); writer.writeEnumValue("attestationLevel", this.getAttestationLevel()); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeStringValue("model", this.getModel()); + writer.writeObjectValue("publicKeyCredential", this.getPublicKeyCredential()); } /** - * Sets the aaGuid property value. Authenticator Attestation GUID, an identifier that indicates the type (e.g. make and model) of the authenticator. + * Sets the aaGuid property value. Authenticator Attestation GUID, an identifier that indicates the type (such as make and model) of the authenticator. * @param value Value to set for the aaGuid property. */ public void setAaGuid(@jakarta.annotation.Nullable final String value) { this.backingStore.set("aaGuid", value); } /** - * Sets the attestationCertificates property value. The attestation certificate(s) attached to this security key. + * Sets the attestationCertificates property value. The attestation certificate or certificates attached to this security key. * @param value Value to set for the attestationCertificates property. */ public void setAttestationCertificates(@jakarta.annotation.Nullable final java.util.List value) { @@ -124,13 +123,6 @@ public void setAttestationCertificates(@jakarta.annotation.Nullable final java.u public void setAttestationLevel(@jakarta.annotation.Nullable final AttestationLevel value) { this.backingStore.set("attestationLevel", value); } - /** - * Sets the createdDateTime property value. The timestamp when this key was registered to the user. - * @param value Value to set for the createdDateTime property. - */ - public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { - this.backingStore.set("createdDateTime", value); - } /** * Sets the displayName property value. The display name of the key as given by the user. * @param value Value to set for the displayName property. @@ -145,4 +137,11 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { public void setModel(@jakarta.annotation.Nullable final String value) { this.backingStore.set("model", value); } + /** + * Sets the publicKeyCredential property value. Contains the WebAuthn public key credential information being registered. Only used for write requests. This property isn't returned on read operations. + * @param value Value to set for the publicKeyCredential property. + */ + public void setPublicKeyCredential(@jakarta.annotation.Nullable final WebauthnPublicKeyCredential value) { + this.backingStore.set("publicKeyCredential", value); + } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/FileStorageContainer.java b/src/main/java/com/microsoft/graph/beta/generated/models/FileStorageContainer.java index a47e2c7c0b3..364fdc75c91 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/FileStorageContainer.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/FileStorageContainer.java @@ -121,6 +121,7 @@ public Map> getFieldDeserializers deserializerMap.put("ownershipType", (n) -> { this.setOwnershipType(n.getEnumValue(FileStorageContainerOwnershipType::forValue)); }); deserializerMap.put("permissions", (n) -> { this.setPermissions(n.getCollectionOfObjectValues(Permission::createFromDiscriminatorValue)); }); deserializerMap.put("recycleBin", (n) -> { this.setRecycleBin(n.getObjectValue(RecycleBin::createFromDiscriminatorValue)); }); + deserializerMap.put("settings", (n) -> { this.setSettings(n.getObjectValue(FileStorageContainerSettings::createFromDiscriminatorValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(FileStorageContainerStatus::forValue)); }); deserializerMap.put("storageUsedInBytes", (n) -> { this.setStorageUsedInBytes(n.getLongValue()); }); deserializerMap.put("viewpoint", (n) -> { this.setViewpoint(n.getObjectValue(FileStorageContainerViewpoint::createFromDiscriminatorValue)); }); @@ -182,6 +183,14 @@ public java.util.List getPermissions() { public RecycleBin getRecycleBin() { return this.backingStore.get("recycleBin"); } + /** + * Gets the settings property value. The settings property + * @return a {@link FileStorageContainerSettings} + */ + @jakarta.annotation.Nullable + public FileStorageContainerSettings getSettings() { + return this.backingStore.get("settings"); + } /** * 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} @@ -229,6 +238,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeEnumValue("ownershipType", this.getOwnershipType()); writer.writeCollectionOfObjectValues("permissions", this.getPermissions()); writer.writeObjectValue("recycleBin", this.getRecycleBin()); + writer.writeObjectValue("settings", this.getSettings()); writer.writeEnumValue("status", this.getStatus()); writer.writeLongValue("storageUsedInBytes", this.getStorageUsedInBytes()); writer.writeObjectValue("viewpoint", this.getViewpoint()); @@ -345,6 +355,13 @@ public void setPermissions(@jakarta.annotation.Nullable final java.util.List()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link FileStorageContainerSettings} + */ + @jakarta.annotation.Nonnull + public static FileStorageContainerSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new FileStorageContainerSettings(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("isOcrEnabled", (n) -> { this.setIsOcrEnabled(n.getBooleanValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the isOcrEnabled property value. Indicates whether OCR is enabled for a given container. If OCR is enabled on a container, OCR extraction is performed for recently added or updated documents (of supported document types) and the extracted fields are added to the metadata of the document. This enables end-user search and search-driven solutions. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsOcrEnabled() { + return this.backingStore.get("isOcrEnabled"); + } + /** + * 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.writeBooleanValue("isOcrEnabled", this.getIsOcrEnabled()); + 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 isOcrEnabled property value. Indicates whether OCR is enabled for a given container. If OCR is enabled on a container, OCR extraction is performed for recently added or updated documents (of supported document types) and the extracted fields are added to the metadata of the document. This enables end-user search and search-driven solutions. + * @param value Value to set for the isOcrEnabled property. + */ + public void setIsOcrEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isOcrEnabled", 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/beta/generated/models/GcpAuthorizationSystemResource.java b/src/main/java/com/microsoft/graph/beta/generated/models/GcpAuthorizationSystemResource.java index bce72cc0297..e6be81cc806 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/GcpAuthorizationSystemResource.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/GcpAuthorizationSystemResource.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the service property value. The service associated with the resource in an GCP authorization system. This object is auto-expanded. + * Gets the service property value. The service associated with the resource in a GCP authorization system. This object is autoexpanded. * @return a {@link AuthorizationSystemTypeService} */ @jakarta.annotation.Nullable @@ -53,7 +53,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("service", this.getService()); } /** - * Sets the service property value. The service associated with the resource in an GCP authorization system. This object is auto-expanded. + * Sets the service property value. The service associated with the resource in a GCP authorization system. This object is autoexpanded. * @param value Value to set for the service property. */ public void setService(@jakarta.annotation.Nullable final AuthorizationSystemTypeService value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Group.java b/src/main/java/com/microsoft/graph/beta/generated/models/Group.java index 4afdf0e27d7..cf4c0845cd0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/Group.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Group.java @@ -364,7 +364,7 @@ public Boolean getIsFavorite() { return this.backingStore.get("isFavorite"); } /** - * Gets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a group member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. + * Gets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit. The default value is false. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -1061,7 +1061,7 @@ public void setIsFavorite(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("isFavorite", value); } /** - * Sets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a group member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. + * Sets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit. The default value is false. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. * @param value Value to set for the isManagementRestricted property. */ public void setIsManagementRestricted(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/GroupAssignmentTarget.java b/src/main/java/com/microsoft/graph/beta/generated/models/GroupAssignmentTarget.java index 6ee0c564ddd..776fce15044 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/GroupAssignmentTarget.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/GroupAssignmentTarget.java @@ -7,7 +7,7 @@ import java.util.Map; import java.util.Objects; /** - * Represents an assignment to a group. + * The AAD Group we are deploying firmware updates to */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GroupAssignmentTarget extends DeviceAndAppManagementAssignmentTarget implements Parsable { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/IdentityProvider.java b/src/main/java/com/microsoft/graph/beta/generated/models/IdentityProvider.java index 9f2ffd59cd0..1fa11410b16 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/IdentityProvider.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/IdentityProvider.java @@ -32,7 +32,7 @@ public static IdentityProvider createFromDiscriminatorValue(@jakarta.annotation. return new IdentityProvider(); } /** - * Gets the clientId property value. The client ID for the application obtained when registering the application with the identity provider. This is a required field. Required. Not nullable. + * Gets the clientId property value. The client ID for the application obtained when registering the application with the identity provider. This is a required field. Required. Not nullable. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -40,7 +40,7 @@ public String getClientId() { return this.backingStore.get("clientId"); } /** - * Gets the clientSecret property value. The client secret for the application obtained when registering the application with the identity provider. This is write-only. A read operation will return . This is a required field. Required. Not nullable. + * Gets the clientSecret property value. The client secret for the application obtained when registering the application with the identity provider. This is write-only. A read operation returns . This is a required field. Required. Not nullable. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -89,14 +89,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("type", this.getType()); } /** - * Sets the clientId property value. The client ID for the application obtained when registering the application with the identity provider. This is a required field. Required. Not nullable. + * Sets the clientId property value. The client ID for the application obtained when registering the application with the identity provider. This is a required field. Required. Not nullable. * @param value Value to set for the clientId property. */ public void setClientId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("clientId", value); } /** - * Sets the clientSecret property value. The client secret for the application obtained when registering the application with the identity provider. This is write-only. A read operation will return . This is a required field. Required. Not nullable. + * Sets the clientSecret property value. The client secret for the application obtained when registering the application with the identity provider. This is write-only. A read operation returns . This is a required field. Required. Not nullable. * @param value Value to set for the clientSecret property. */ public void setClientSecret(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/IdentitySet.java b/src/main/java/com/microsoft/graph/beta/generated/models/IdentitySet.java index df245d47fbf..0efb54f4c37 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/IdentitySet.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/IdentitySet.java @@ -59,7 +59,7 @@ public Map getAdditionalData() { return value; } /** - * Gets the application property value. The Identity of the Application. This property is read-only. + * Gets the application property value. Optional. The application associated with this action. * @return a {@link Identity} */ @jakarta.annotation.Nullable @@ -75,7 +75,7 @@ public BackingStore getBackingStore() { return this.backingStore; } /** - * Gets the device property value. The Identity of the Device. This property is read-only. + * Gets the device property value. Optional. The device associated with this action. * @return a {@link Identity} */ @jakarta.annotation.Nullable @@ -104,7 +104,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the user property value. The Identity of the User. This property is read-only. + * Gets the user property value. Optional. The user associated with this action. * @return a {@link Identity} */ @jakarta.annotation.Nullable @@ -131,7 +131,7 @@ public void setAdditionalData(@jakarta.annotation.Nullable final Map} */ @jakarta.annotation.Nullable @@ -69,7 +69,7 @@ public String getDisplayName() { return this.backingStore.get("displayName"); } /** - * Gets the expirationDateTime property value. Optional profile expiration date and time. + * Gets the expirationDateTime property value. Optional profile expiration date and time. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned by default. * @return a {@link OffsetDateTime} */ @jakarta.annotation.Nullable @@ -176,7 +176,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeIntegerValue("version", this.getVersion()); } /** - * Sets the assignments property value. The associated group assignments for IosLobAppProvisioningConfiguration. + * Sets the assignments property value. The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. * @param value Value to set for the assignments property. */ public void setAssignments(@jakarta.annotation.Nullable final java.util.List value) { @@ -211,7 +211,7 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } /** - * Sets the expirationDateTime property value. Optional profile expiration date and time. + * Sets the expirationDateTime property value. Optional profile expiration date and time. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned by default. * @param value Value to set for the expirationDateTime property. */ public void setExpirationDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/IosManagedAppProtection.java b/src/main/java/com/microsoft/graph/beta/generated/models/IosManagedAppProtection.java index 28bb9508817..0bba47ded5d 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/IosManagedAppProtection.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/IosManagedAppProtection.java @@ -77,7 +77,7 @@ public java.util.List getApps() { return this.backingStore.get("apps"); } /** - * Gets the customBrowserProtocol property value. A custom browser protocol to open weblink on iOS. When this property is configured, ManagedBrowserToOpenLinksRequired should be true. + * Gets the customBrowserProtocol property value. A custom browser protocol to open weblink on iOS. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -308,7 +308,7 @@ public void setApps(@jakarta.annotation.Nullable final java.util.List getCertificateBasedApplicationConfigurationIds() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); + final HashMap> deserializerMap = new HashMap>(6); deserializerMap.put("certificateBasedApplicationConfigurationIds", (n) -> { this.setCertificateBasedApplicationConfigurationIds(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("maxLifetime", (n) -> { this.setMaxLifetime(n.getPeriodAndDurationValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("restrictForAppsCreatedAfterDateTime", (n) -> { this.setRestrictForAppsCreatedAfterDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("restrictionType", (n) -> { this.setRestrictionType(n.getEnumValue(AppKeyCredentialRestrictionType::forValue)); }); + deserializerMap.put("state", (n) -> { this.setState(n.getEnumValue(AppManagementRestrictionState::forValue)); }); return deserializerMap; } /** @@ -111,6 +112,14 @@ public OffsetDateTime getRestrictForAppsCreatedAfterDateTime() { public AppKeyCredentialRestrictionType getRestrictionType() { return this.backingStore.get("restrictionType"); } + /** + * Gets the state property value. String value that indicates if the restriction is evaluated. The possible values are: enabled, disabled, and unknownFutureValue. If enabled, the restriction is evaluated. If disabled, the restriction isn't evaluated or enforced. + * @return a {@link AppManagementRestrictionState} + */ + @jakarta.annotation.Nullable + public AppManagementRestrictionState getState() { + return this.backingStore.get("state"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -122,6 +131,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeOffsetDateTimeValue("restrictForAppsCreatedAfterDateTime", this.getRestrictForAppsCreatedAfterDateTime()); writer.writeEnumValue("restrictionType", this.getRestrictionType()); + writer.writeEnumValue("state", this.getState()); writer.writeAdditionalData(this.getAdditionalData()); } /** @@ -174,4 +184,11 @@ public void setRestrictForAppsCreatedAfterDateTime(@jakarta.annotation.Nullable public void setRestrictionType(@jakarta.annotation.Nullable final AppKeyCredentialRestrictionType value) { this.backingStore.set("restrictionType", value); } + /** + * Sets the state property value. String value that indicates if the restriction is evaluated. The possible values are: enabled, disabled, and unknownFutureValue. If enabled, the restriction is evaluated. If disabled, the restriction isn't evaluated or enforced. + * @param value Value to set for the state property. + */ + public void setState(@jakarta.annotation.Nullable final AppManagementRestrictionState value) { + this.backingStore.set("state", value); + } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/KeyValue.java b/src/main/java/com/microsoft/graph/beta/generated/models/KeyValue.java index cd72a7810bc..07ae7de0b0b 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/KeyValue.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/KeyValue.java @@ -68,7 +68,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the key property value. Contains the name of the field that a value is associated with. + * Gets the key property value. Key. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -84,7 +84,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the value property value. Contains the corresponding value for the specified key. + * Gets the value property value. Value. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -118,7 +118,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the key property value. Contains the name of the field that a value is associated with. + * Sets the key property value. Key. * @param value Value to set for the key property. */ public void setKey(@jakarta.annotation.Nullable final String value) { @@ -132,7 +132,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the value property value. Contains the corresponding value for the specified key. + * Sets the value property value. Value. * @param value Value to set for the value property. */ public void setValue(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSImportedPFXCertificateProfile.java b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSImportedPFXCertificateProfile.java index 5e81b1caef5..2f7fad82e56 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSImportedPFXCertificateProfile.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSImportedPFXCertificateProfile.java @@ -28,6 +28,14 @@ public static MacOSImportedPFXCertificateProfile createFromDiscriminatorValue(@j Objects.requireNonNull(parseNode); return new MacOSImportedPFXCertificateProfile(); } + /** + * Gets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @return a {@link AppleDeploymentChannel} + */ + @jakarta.annotation.Nullable + public AppleDeploymentChannel getDeploymentChannel() { + return this.backingStore.get("deploymentChannel"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -35,6 +43,7 @@ public static MacOSImportedPFXCertificateProfile createFromDiscriminatorValue(@j @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("deploymentChannel", (n) -> { this.setDeploymentChannel(n.getEnumValue(AppleDeploymentChannel::forValue)); }); deserializerMap.put("intendedPurpose", (n) -> { this.setIntendedPurpose(n.getEnumValue(IntendedPurpose::forValue)); }); deserializerMap.put("managedDeviceCertificateStates", (n) -> { this.setManagedDeviceCertificateStates(n.getCollectionOfObjectValues(ManagedDeviceCertificateState::createFromDiscriminatorValue)); }); return deserializerMap; @@ -62,9 +71,17 @@ public java.util.List getManagedDeviceCertificate public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeEnumValue("deploymentChannel", this.getDeploymentChannel()); writer.writeEnumValue("intendedPurpose", this.getIntendedPurpose()); writer.writeCollectionOfObjectValues("managedDeviceCertificateStates", this.getManagedDeviceCertificateStates()); } + /** + * Sets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @param value Value to set for the deploymentChannel property. + */ + public void setDeploymentChannel(@jakarta.annotation.Nullable final AppleDeploymentChannel value) { + this.backingStore.set("deploymentChannel", value); + } /** * Sets the intendedPurpose property value. PFX Import Options. * @param value Value to set for the intendedPurpose property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSPkcsCertificateProfile.java b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSPkcsCertificateProfile.java index 6b1bb3796fa..32417b27711 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSPkcsCertificateProfile.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSPkcsCertificateProfile.java @@ -76,6 +76,14 @@ public String getCertificationAuthorityName() { public java.util.List getCustomSubjectAlternativeNames() { return this.backingStore.get("customSubjectAlternativeNames"); } + /** + * Gets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @return a {@link AppleDeploymentChannel} + */ + @jakarta.annotation.Nullable + public AppleDeploymentChannel getDeploymentChannel() { + return this.backingStore.get("deploymentChannel"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -89,6 +97,7 @@ public Map> getFieldDeserializers deserializerMap.put("certificationAuthority", (n) -> { this.setCertificationAuthority(n.getStringValue()); }); deserializerMap.put("certificationAuthorityName", (n) -> { this.setCertificationAuthorityName(n.getStringValue()); }); deserializerMap.put("customSubjectAlternativeNames", (n) -> { this.setCustomSubjectAlternativeNames(n.getCollectionOfObjectValues(CustomSubjectAlternativeName::createFromDiscriminatorValue)); }); + deserializerMap.put("deploymentChannel", (n) -> { this.setDeploymentChannel(n.getEnumValue(AppleDeploymentChannel::forValue)); }); deserializerMap.put("managedDeviceCertificateStates", (n) -> { this.setManagedDeviceCertificateStates(n.getCollectionOfObjectValues(ManagedDeviceCertificateState::createFromDiscriminatorValue)); }); deserializerMap.put("subjectAlternativeNameFormatString", (n) -> { this.setSubjectAlternativeNameFormatString(n.getStringValue()); }); deserializerMap.put("subjectNameFormatString", (n) -> { this.setSubjectNameFormatString(n.getStringValue()); }); @@ -131,6 +140,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("certificationAuthority", this.getCertificationAuthority()); writer.writeStringValue("certificationAuthorityName", this.getCertificationAuthorityName()); writer.writeCollectionOfObjectValues("customSubjectAlternativeNames", this.getCustomSubjectAlternativeNames()); + writer.writeEnumValue("deploymentChannel", this.getDeploymentChannel()); writer.writeCollectionOfObjectValues("managedDeviceCertificateStates", this.getManagedDeviceCertificateStates()); writer.writeStringValue("subjectAlternativeNameFormatString", this.getSubjectAlternativeNameFormatString()); writer.writeStringValue("subjectNameFormatString", this.getSubjectNameFormatString()); @@ -177,6 +187,13 @@ public void setCertificationAuthorityName(@jakarta.annotation.Nullable final Str public void setCustomSubjectAlternativeNames(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("customSubjectAlternativeNames", value); } + /** + * Sets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @param value Value to set for the deploymentChannel property. + */ + public void setDeploymentChannel(@jakarta.annotation.Nullable final AppleDeploymentChannel value) { + this.backingStore.set("deploymentChannel", value); + } /** * Sets the managedDeviceCertificateStates property value. Certificate state for devices. This collection can contain a maximum of 2147483647 elements. * @param value Value to set for the managedDeviceCertificateStates property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSScepCertificateProfile.java b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSScepCertificateProfile.java index f22b0797d07..655f8c30c68 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSScepCertificateProfile.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSScepCertificateProfile.java @@ -53,6 +53,14 @@ public CertificateStore getCertificateStore() { public java.util.List getCustomSubjectAlternativeNames() { return this.backingStore.get("customSubjectAlternativeNames"); } + /** + * Gets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @return a {@link AppleDeploymentChannel} + */ + @jakarta.annotation.Nullable + public AppleDeploymentChannel getDeploymentChannel() { + return this.backingStore.get("deploymentChannel"); + } /** * Gets the extendedKeyUsages property value. Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. * @return a {@link java.util.List} @@ -71,6 +79,7 @@ public Map> getFieldDeserializers deserializerMap.put("allowAllAppsAccess", (n) -> { this.setAllowAllAppsAccess(n.getBooleanValue()); }); deserializerMap.put("certificateStore", (n) -> { this.setCertificateStore(n.getEnumValue(CertificateStore::forValue)); }); deserializerMap.put("customSubjectAlternativeNames", (n) -> { this.setCustomSubjectAlternativeNames(n.getCollectionOfObjectValues(CustomSubjectAlternativeName::createFromDiscriminatorValue)); }); + deserializerMap.put("deploymentChannel", (n) -> { this.setDeploymentChannel(n.getEnumValue(AppleDeploymentChannel::forValue)); }); deserializerMap.put("extendedKeyUsages", (n) -> { this.setExtendedKeyUsages(n.getCollectionOfObjectValues(ExtendedKeyUsage::createFromDiscriminatorValue)); }); deserializerMap.put("hashAlgorithm", (n) -> { this.setHashAlgorithm(n.getEnumSetValue(HashAlgorithms::forValue)); }); deserializerMap.put("keySize", (n) -> { this.setKeySize(n.getEnumValue(KeySize::forValue)); }); @@ -156,6 +165,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("allowAllAppsAccess", this.getAllowAllAppsAccess()); writer.writeEnumValue("certificateStore", this.getCertificateStore()); writer.writeCollectionOfObjectValues("customSubjectAlternativeNames", this.getCustomSubjectAlternativeNames()); + writer.writeEnumValue("deploymentChannel", this.getDeploymentChannel()); writer.writeCollectionOfObjectValues("extendedKeyUsages", this.getExtendedKeyUsages()); writer.writeEnumSetValue("hashAlgorithm", this.getHashAlgorithm()); writer.writeEnumValue("keySize", this.getKeySize()); @@ -187,6 +197,13 @@ public void setCertificateStore(@jakarta.annotation.Nullable final CertificateSt public void setCustomSubjectAlternativeNames(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("customSubjectAlternativeNames", value); } + /** + * Sets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @param value Value to set for the deploymentChannel property. + */ + public void setDeploymentChannel(@jakarta.annotation.Nullable final AppleDeploymentChannel value) { + this.backingStore.set("deploymentChannel", value); + } /** * Sets the extendedKeyUsages property value. Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements. * @param value Value to set for the extendedKeyUsages property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSTrustedRootCertificate.java b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSTrustedRootCertificate.java index 501d521d023..8cee49173c5 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSTrustedRootCertificate.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSTrustedRootCertificate.java @@ -36,6 +36,14 @@ public static MacOSTrustedRootCertificate createFromDiscriminatorValue(@jakarta. public String getCertFileName() { return this.backingStore.get("certFileName"); } + /** + * Gets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @return a {@link AppleDeploymentChannel} + */ + @jakarta.annotation.Nullable + public AppleDeploymentChannel getDeploymentChannel() { + return this.backingStore.get("deploymentChannel"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -44,6 +52,7 @@ public String getCertFileName() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("certFileName", (n) -> { this.setCertFileName(n.getStringValue()); }); + deserializerMap.put("deploymentChannel", (n) -> { this.setDeploymentChannel(n.getEnumValue(AppleDeploymentChannel::forValue)); }); deserializerMap.put("trustedRootCertificate", (n) -> { this.setTrustedRootCertificate(n.getByteArrayValue()); }); return deserializerMap; } @@ -63,6 +72,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeStringValue("certFileName", this.getCertFileName()); + writer.writeEnumValue("deploymentChannel", this.getDeploymentChannel()); writer.writeByteArrayValue("trustedRootCertificate", this.getTrustedRootCertificate()); } /** @@ -72,6 +82,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setCertFileName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("certFileName", value); } + /** + * Sets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @param value Value to set for the deploymentChannel property. + */ + public void setDeploymentChannel(@jakarta.annotation.Nullable final AppleDeploymentChannel value) { + this.backingStore.set("deploymentChannel", value); + } /** * Sets the trustedRootCertificate property value. Trusted Root Certificate. * @param value Value to set for the trustedRootCertificate property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSVpnConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSVpnConfiguration.java index f2f0ff52b9b..5adf74f26d3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSVpnConfiguration.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSVpnConfiguration.java @@ -28,6 +28,14 @@ public static MacOSVpnConfiguration createFromDiscriminatorValue(@jakarta.annota Objects.requireNonNull(parseNode); return new MacOSVpnConfiguration(); } + /** + * Gets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @return a {@link AppleDeploymentChannel} + */ + @jakarta.annotation.Nullable + public AppleDeploymentChannel getDeploymentChannel() { + return this.backingStore.get("deploymentChannel"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -35,6 +43,7 @@ public static MacOSVpnConfiguration createFromDiscriminatorValue(@jakarta.annota @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("deploymentChannel", (n) -> { this.setDeploymentChannel(n.getEnumValue(AppleDeploymentChannel::forValue)); }); deserializerMap.put("identityCertificate", (n) -> { this.setIdentityCertificate(n.getObjectValue(MacOSCertificateProfileBase::createFromDiscriminatorValue)); }); return deserializerMap; } @@ -53,8 +62,16 @@ public MacOSCertificateProfileBase getIdentityCertificate() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); + writer.writeEnumValue("deploymentChannel", this.getDeploymentChannel()); writer.writeObjectValue("identityCertificate", this.getIdentityCertificate()); } + /** + * Sets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @param value Value to set for the deploymentChannel property. + */ + public void setDeploymentChannel(@jakarta.annotation.Nullable final AppleDeploymentChannel value) { + this.backingStore.set("deploymentChannel", value); + } /** * Sets the identityCertificate property value. Identity certificate for client authentication when authentication method is certificate. * @param value Value to set for the identityCertificate property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSWiFiConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSWiFiConfiguration.java index 1440895d767..27478b82110 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSWiFiConfiguration.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSWiFiConfiguration.java @@ -51,6 +51,14 @@ public Boolean getConnectAutomatically() { public Boolean getConnectWhenNetworkNameIsHidden() { return this.backingStore.get("connectWhenNetworkNameIsHidden"); } + /** + * Gets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @return a {@link AppleDeploymentChannel} + */ + @jakarta.annotation.Nullable + public AppleDeploymentChannel getDeploymentChannel() { + return this.backingStore.get("deploymentChannel"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -60,6 +68,7 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("connectAutomatically", (n) -> { this.setConnectAutomatically(n.getBooleanValue()); }); deserializerMap.put("connectWhenNetworkNameIsHidden", (n) -> { this.setConnectWhenNetworkNameIsHidden(n.getBooleanValue()); }); + deserializerMap.put("deploymentChannel", (n) -> { this.setDeploymentChannel(n.getEnumValue(AppleDeploymentChannel::forValue)); }); deserializerMap.put("networkName", (n) -> { this.setNetworkName(n.getStringValue()); }); deserializerMap.put("preSharedKey", (n) -> { this.setPreSharedKey(n.getStringValue()); }); deserializerMap.put("proxyAutomaticConfigurationUrl", (n) -> { this.setProxyAutomaticConfigurationUrl(n.getStringValue()); }); @@ -143,6 +152,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeBooleanValue("connectAutomatically", this.getConnectAutomatically()); writer.writeBooleanValue("connectWhenNetworkNameIsHidden", this.getConnectWhenNetworkNameIsHidden()); + writer.writeEnumValue("deploymentChannel", this.getDeploymentChannel()); writer.writeStringValue("networkName", this.getNetworkName()); writer.writeStringValue("preSharedKey", this.getPreSharedKey()); writer.writeStringValue("proxyAutomaticConfigurationUrl", this.getProxyAutomaticConfigurationUrl()); @@ -166,6 +176,13 @@ public void setConnectAutomatically(@jakarta.annotation.Nullable final Boolean v public void setConnectWhenNetworkNameIsHidden(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("connectWhenNetworkNameIsHidden", value); } + /** + * Sets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @param value Value to set for the deploymentChannel property. + */ + public void setDeploymentChannel(@jakarta.annotation.Nullable final AppleDeploymentChannel value) { + this.backingStore.set("deploymentChannel", value); + } /** * Sets the networkName property value. Network Name * @param value Value to set for the networkName property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSWiredNetworkConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSWiredNetworkConfiguration.java index 6d3ae96d762..636a9520cc7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MacOSWiredNetworkConfiguration.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MacOSWiredNetworkConfiguration.java @@ -36,6 +36,14 @@ public static MacOSWiredNetworkConfiguration createFromDiscriminatorValue(@jakar public WiFiAuthenticationMethod getAuthenticationMethod() { return this.backingStore.get("authenticationMethod"); } + /** + * Gets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @return a {@link AppleDeploymentChannel} + */ + @jakarta.annotation.Nullable + public AppleDeploymentChannel getDeploymentChannel() { + return this.backingStore.get("deploymentChannel"); + } /** * Gets the eapFastConfiguration property value. EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. * @return a {@link EapFastConfiguration} @@ -68,6 +76,7 @@ public String getEnableOuterIdentityPrivacy() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("authenticationMethod", (n) -> { this.setAuthenticationMethod(n.getEnumValue(WiFiAuthenticationMethod::forValue)); }); + deserializerMap.put("deploymentChannel", (n) -> { this.setDeploymentChannel(n.getEnumValue(AppleDeploymentChannel::forValue)); }); deserializerMap.put("eapFastConfiguration", (n) -> { this.setEapFastConfiguration(n.getEnumValue(EapFastConfiguration::forValue)); }); deserializerMap.put("eapType", (n) -> { this.setEapType(n.getEnumValue(EapType::forValue)); }); deserializerMap.put("enableOuterIdentityPrivacy", (n) -> { this.setEnableOuterIdentityPrivacy(n.getStringValue()); }); @@ -135,6 +144,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeEnumValue("authenticationMethod", this.getAuthenticationMethod()); + writer.writeEnumValue("deploymentChannel", this.getDeploymentChannel()); writer.writeEnumValue("eapFastConfiguration", this.getEapFastConfiguration()); writer.writeEnumValue("eapType", this.getEapType()); writer.writeStringValue("enableOuterIdentityPrivacy", this.getEnableOuterIdentityPrivacy()); @@ -152,6 +162,13 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ public void setAuthenticationMethod(@jakarta.annotation.Nullable final WiFiAuthenticationMethod value) { this.backingStore.set("authenticationMethod", value); } + /** + * Sets the deploymentChannel property value. Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. + * @param value Value to set for the deploymentChannel property. + */ + public void setDeploymentChannel(@jakarta.annotation.Nullable final AppleDeploymentChannel value) { + this.backingStore.set("deploymentChannel", value); + } /** * Sets the eapFastConfiguration property value. EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. * @param value Value to set for the eapFastConfiguration property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MacOsLobAppAssignmentSettings.java b/src/main/java/com/microsoft/graph/beta/generated/models/MacOsLobAppAssignmentSettings.java index 279bfd72943..9b7124da50b 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MacOsLobAppAssignmentSettings.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MacOsLobAppAssignmentSettings.java @@ -39,7 +39,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. + * Gets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -56,7 +56,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("uninstallOnDeviceRemoval", this.getUninstallOnDeviceRemoval()); } /** - * Sets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. + * Sets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. * @param value Value to set for the uninstallOnDeviceRemoval property. */ public void setUninstallOnDeviceRemoval(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemEdition.java b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemEdition.java new file mode 100644 index 00000000000..5ecd1c9388f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemEdition.java @@ -0,0 +1,145 @@ +package com.microsoft.graph.beta.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.time.LocalDate; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Different Windows' versions have Edition specific support timelines. This complex type defines the date until which a particular edition is supported in a Windows' version. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ManagedDeviceWindowsOperatingSystemEdition implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ManagedDeviceWindowsOperatingSystemEdition} and sets the default values. + */ + public ManagedDeviceWindowsOperatingSystemEdition() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ManagedDeviceWindowsOperatingSystemEdition} + */ + @jakarta.annotation.Nonnull + public static ManagedDeviceWindowsOperatingSystemEdition createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ManagedDeviceWindowsOperatingSystemEdition(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the editionType property value. Windows Operating System is available in different editions, which have a specific set of features available. This enum type defines the corresponding edition. + * @return a {@link ManagedDeviceWindowsOperatingSystemEditionType} + */ + @jakarta.annotation.Nullable + public ManagedDeviceWindowsOperatingSystemEditionType getEditionType() { + return this.backingStore.get("editionType"); + } + /** + * 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("editionType", (n) -> { this.setEditionType(n.getEnumValue(ManagedDeviceWindowsOperatingSystemEditionType::forValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("supportEndDate", (n) -> { this.setSupportEndDate(n.getLocalDateValue()); }); + 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 supportEndDate property value. Indicates the Date until which this Operating System edition type is officially supported. The Timestamp type represents date and time information using ISO 8601 format and is always in Pacific Time Zone (PT). For example, 2014-01-01 would mean '2014-01-01T07:00:00Z' in UTC time. Returned by default. Read-only. + * @return a {@link LocalDate} + */ + @jakarta.annotation.Nullable + public LocalDate getSupportEndDate() { + return this.backingStore.get("supportEndDate"); + } + /** + * Serializes information the current 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("editionType", this.getEditionType()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeLocalDateValue("supportEndDate", this.getSupportEndDate()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the editionType property value. Windows Operating System is available in different editions, which have a specific set of features available. This enum type defines the corresponding edition. + * @param value Value to set for the editionType property. + */ + public void setEditionType(@jakarta.annotation.Nullable final ManagedDeviceWindowsOperatingSystemEditionType value) { + this.backingStore.set("editionType", 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 supportEndDate property value. Indicates the Date until which this Operating System edition type is officially supported. The Timestamp type represents date and time information using ISO 8601 format and is always in Pacific Time Zone (PT). For example, 2014-01-01 would mean '2014-01-01T07:00:00Z' in UTC time. Returned by default. Read-only. + * @param value Value to set for the supportEndDate property. + */ + public void setSupportEndDate(@jakarta.annotation.Nullable final LocalDate value) { + this.backingStore.set("supportEndDate", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemEditionType.java b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemEditionType.java new file mode 100644 index 00000000000..c7e4a78fc2e --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemEditionType.java @@ -0,0 +1,57 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +/** + * Windows Operating System is available in different editions, which have a specific set of features available. This enum type defines the corresponding edition. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum ManagedDeviceWindowsOperatingSystemEditionType implements ValuedEnum { + /** Default. Indicates Professional Operating System edition used for the managed device. */ + Professional("professional"), + /** Indicates Professional N Operating System edition used for the managed device. */ + ProfessionalN("professionalN"), + /** Indicates Enterprise Operating System edition used for the managed device. */ + Enterprise("enterprise"), + /** Indicates Enterprise N Operating System edition used for the managed device. */ + EnterpriseN("enterpriseN"), + /** Indicates Education Operating System edition used for the managed device. */ + Education("education"), + /** Indicates Education N Operating System edition used for the managed device. */ + EducationN("educationN"), + /** Indicates Pro Education Operating System edition used for the managed device. */ + ProEducation("proEducation"), + /** Indicates Pro Education N Operating System edition used for the managed device. */ + ProEducationN("proEducationN"), + /** Indicates Pro Workstation Operating System edition used for the managed device. */ + ProWorkstation("proWorkstation"), + /** Indicates Pro Workstation N Operating System edition used for the managed device. */ + ProWorkstationN("proWorkstationN"), + /** Evolvable enumeration sentinel value. Do not use. */ + UnknownFutureValue("unknownFutureValue"); + public final String value; + ManagedDeviceWindowsOperatingSystemEditionType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static ManagedDeviceWindowsOperatingSystemEditionType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "professional": return Professional; + case "professionalN": return ProfessionalN; + case "enterprise": return Enterprise; + case "enterpriseN": return EnterpriseN; + case "education": return Education; + case "educationN": return EducationN; + case "proEducation": return ProEducation; + case "proEducationN": return ProEducationN; + case "proWorkstation": return ProWorkstation; + case "proWorkstationN": return ProWorkstationN; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemImage.java b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemImage.java new file mode 100644 index 00000000000..a5f82777108 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemImage.java @@ -0,0 +1,98 @@ +package com.microsoft.graph.beta.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; +/** + * This entity defines different Windows Operating System products, like 'Windows 11 22H1', 'Windows 11 22H2' etc., along with their available configurations. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ManagedDeviceWindowsOperatingSystemImage extends Entity implements Parsable { + /** + * Instantiates a new {@link ManagedDeviceWindowsOperatingSystemImage} and sets the default values. + */ + public ManagedDeviceWindowsOperatingSystemImage() { + 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 ManagedDeviceWindowsOperatingSystemImage} + */ + @jakarta.annotation.Nonnull + public static ManagedDeviceWindowsOperatingSystemImage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ManagedDeviceWindowsOperatingSystemImage(); + } + /** + * Gets the availableUpdates property value. Indicates the available Quality/Security updates for a specific Windows product version (example: Windows 11 22H1), for upto last 3 Patch Tuesdays . This value in the API response would be updated 2-3 days after every Patch Tuesday. Supports: $filter, $select, $top, $skip. Read-only. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getAvailableUpdates() { + return this.backingStore.get("availableUpdates"); + } + /** + * 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("availableUpdates", (n) -> { this.setAvailableUpdates(n.getCollectionOfObjectValues(ManagedDeviceWindowsOperatingSystemUpdate::createFromDiscriminatorValue)); }); + deserializerMap.put("supportedArchitectures", (n) -> { this.setSupportedArchitectures(n.getCollectionOfEnumValues(ManagedDeviceArchitecture::forValue)); }); + deserializerMap.put("supportedEditions", (n) -> { this.setSupportedEditions(n.getCollectionOfObjectValues(ManagedDeviceWindowsOperatingSystemEdition::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the supportedArchitectures property value. Indicates the list of architectures supported by the image. E.g. ['ARM64','X86']. Supports: $filter, $select, $top, $skip. Read-only. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getSupportedArchitectures() { + return this.backingStore.get("supportedArchitectures"); + } + /** + * Gets the supportedEditions property value. Indicates the list of editions supported by the image along with their support dates. Supports: $filter, $select, $top, $skip. Read-only. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getSupportedEditions() { + return this.backingStore.get("supportedEditions"); + } + /** + * Serializes information the 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("availableUpdates", this.getAvailableUpdates()); + writer.writeCollectionOfEnumValues("supportedArchitectures", this.getSupportedArchitectures()); + writer.writeCollectionOfObjectValues("supportedEditions", this.getSupportedEditions()); + } + /** + * Sets the availableUpdates property value. Indicates the available Quality/Security updates for a specific Windows product version (example: Windows 11 22H1), for upto last 3 Patch Tuesdays . This value in the API response would be updated 2-3 days after every Patch Tuesday. Supports: $filter, $select, $top, $skip. Read-only. + * @param value Value to set for the availableUpdates property. + */ + public void setAvailableUpdates(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("availableUpdates", value); + } + /** + * Sets the supportedArchitectures property value. Indicates the list of architectures supported by the image. E.g. ['ARM64','X86']. Supports: $filter, $select, $top, $skip. Read-only. + * @param value Value to set for the supportedArchitectures property. + */ + public void setSupportedArchitectures(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("supportedArchitectures", value); + } + /** + * Sets the supportedEditions property value. Indicates the list of editions supported by the image along with their support dates. Supports: $filter, $select, $top, $skip. Read-only. + * @param value Value to set for the supportedEditions property. + */ + public void setSupportedEditions(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("supportedEditions", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemImageCollectionResponse.java b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemImageCollectionResponse.java new file mode 100644 index 00000000000..551a7b82316 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemImageCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.beta.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 ManagedDeviceWindowsOperatingSystemImageCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link ManagedDeviceWindowsOperatingSystemImageCollectionResponse} and sets the default values. + */ + public ManagedDeviceWindowsOperatingSystemImageCollectionResponse() { + 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 ManagedDeviceWindowsOperatingSystemImageCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static ManagedDeviceWindowsOperatingSystemImageCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ManagedDeviceWindowsOperatingSystemImageCollectionResponse(); + } + /** + * 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(ManagedDeviceWindowsOperatingSystemImage::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/beta/generated/models/ManagedDeviceWindowsOperatingSystemUpdate.java b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemUpdate.java new file mode 100644 index 00000000000..253608ed50f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ManagedDeviceWindowsOperatingSystemUpdate.java @@ -0,0 +1,161 @@ +package com.microsoft.graph.beta.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; +/** + * Updates for different Windows' versions are usually released on the Patch Tuesday or B-week of each month. This complex type defines the Build-version and the release-date for a particular B-week update of the Windows' version. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ManagedDeviceWindowsOperatingSystemUpdate implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ManagedDeviceWindowsOperatingSystemUpdate} and sets the default values. + */ + public ManagedDeviceWindowsOperatingSystemUpdate() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ManagedDeviceWindowsOperatingSystemUpdate} + */ + @jakarta.annotation.Nonnull + public static ManagedDeviceWindowsOperatingSystemUpdate createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ManagedDeviceWindowsOperatingSystemUpdate(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the buildVersion property value. Indicates the build version for associated windows update. Windows Operating System updates are usually released on the Patch Tuesday or B-week of each month. Read-only. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getBuildVersion() { + return this.backingStore.get("buildVersion"); + } + /** + * 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("buildVersion", (n) -> { this.setBuildVersion(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("releaseMonth", (n) -> { this.setReleaseMonth(n.getIntegerValue()); }); + deserializerMap.put("releaseYear", (n) -> { this.setReleaseYear(n.getIntegerValue()); }); + 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 releaseMonth property value. Indicates the Month in which this B-week update was released. Read-only. + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getReleaseMonth() { + return this.backingStore.get("releaseMonth"); + } + /** + * Gets the releaseYear property value. Indicates the Year in which this B-week update was released. Read-only. + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getReleaseYear() { + return this.backingStore.get("releaseYear"); + } + /** + * Serializes information the current 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("buildVersion", this.getBuildVersion()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeIntegerValue("releaseMonth", this.getReleaseMonth()); + writer.writeIntegerValue("releaseYear", this.getReleaseYear()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the buildVersion property value. Indicates the build version for associated windows update. Windows Operating System updates are usually released on the Patch Tuesday or B-week of each month. Read-only. + * @param value Value to set for the buildVersion property. + */ + public void setBuildVersion(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("buildVersion", 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 releaseMonth property value. Indicates the Month in which this B-week update was released. Read-only. + * @param value Value to set for the releaseMonth property. + */ + public void setReleaseMonth(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("releaseMonth", value); + } + /** + * Sets the releaseYear property value. Indicates the Year in which this B-week update was released. Read-only. + * @param value Value to set for the releaseYear property. + */ + public void setReleaseYear(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("releaseYear", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MeetingLiveShareOptions.java b/src/main/java/com/microsoft/graph/beta/generated/models/MeetingLiveShareOptions.java new file mode 100644 index 00000000000..582ca7a8e72 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MeetingLiveShareOptions.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum MeetingLiveShareOptions implements ValuedEnum { + Enabled("enabled"), + Disabled("disabled"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + MeetingLiveShareOptions(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static MeetingLiveShareOptions forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "enabled": return Enabled; + case "disabled": return Disabled; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MeetingRegistrant.java b/src/main/java/com/microsoft/graph/beta/generated/models/MeetingRegistrant.java index 51a5b008881..3e4402f401a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MeetingRegistrant.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MeetingRegistrant.java @@ -66,7 +66,7 @@ public String getFirstName() { return this.backingStore.get("firstName"); } /** - * Gets the lastName property value. The last name of the registrant. + * Gets the lastName property value. The family name of the registrant. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -125,7 +125,7 @@ public void setFirstName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("firstName", value); } /** - * Sets the lastName property value. The last name of the registrant. + * Sets the lastName property value. The family name of the registrant. * @param value Value to set for the lastName property. */ public void setLastName(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MicrosoftAuthenticatorAuthenticationMethod.java b/src/main/java/com/microsoft/graph/beta/generated/models/MicrosoftAuthenticatorAuthenticationMethod.java index 739faea9413..5ea179327c9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MicrosoftAuthenticatorAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MicrosoftAuthenticatorAuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -35,15 +34,7 @@ public MicrosoftAuthenticatorAuthenticationMethodClientAppName getClientAppName( return this.backingStore.get("clientAppName"); } /** - * Gets the createdDateTime property value. The date and time that this app was registered. This property is null if the device is not registered for passwordless Phone Sign-In. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } - /** - * Gets the device property value. The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + * Gets the device property value. The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. * @return a {@link Device} */ @jakarta.annotation.Nullable @@ -74,7 +65,6 @@ public String getDisplayName() { public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("clientAppName", (n) -> { this.setClientAppName(n.getEnumValue(MicrosoftAuthenticatorAuthenticationMethodClientAppName::forValue)); }); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("device", (n) -> { this.setDevice(n.getObjectValue(Device::createFromDiscriminatorValue)); }); deserializerMap.put("deviceTag", (n) -> { this.setDeviceTag(n.getStringValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); @@ -97,7 +87,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ Objects.requireNonNull(writer); super.serialize(writer); writer.writeEnumValue("clientAppName", this.getClientAppName()); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeObjectValue("device", this.getDevice()); writer.writeStringValue("deviceTag", this.getDeviceTag()); writer.writeStringValue("displayName", this.getDisplayName()); @@ -111,14 +100,7 @@ public void setClientAppName(@jakarta.annotation.Nullable final MicrosoftAuthent this.backingStore.set("clientAppName", value); } /** - * Sets the createdDateTime property value. The date and time that this app was registered. This property is null if the device is not registered for passwordless Phone Sign-In. - * @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 device property value. The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + * Sets the device property value. The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. * @param value Value to set for the device property. */ public void setDevice(@jakarta.annotation.Nullable final Device value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MicrosoftTunnelConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/MicrosoftTunnelConfiguration.java index d6a64016253..11bb95d5ecd 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MicrosoftTunnelConfiguration.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MicrosoftTunnelConfiguration.java @@ -89,6 +89,7 @@ public Map> getFieldDeserializers deserializerMap.put("disableUdpConnections", (n) -> { this.setDisableUdpConnections(n.getBooleanValue()); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("dnsServers", (n) -> { this.setDnsServers(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("ipv6Network", (n) -> { this.setIpv6Network(n.getStringValue()); }); deserializerMap.put("lastUpdateDateTime", (n) -> { this.setLastUpdateDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("listenPort", (n) -> { this.setListenPort(n.getIntegerValue()); }); deserializerMap.put("network", (n) -> { this.setNetwork(n.getStringValue()); }); @@ -100,6 +101,14 @@ public Map> getFieldDeserializers deserializerMap.put("splitDNS", (n) -> { this.setSplitDNS(n.getCollectionOfPrimitiveValues(String.class)); }); return deserializerMap; } + /** + * Gets the ipv6Network property value. The IPv6 subnet that will be used to allocate virtual address for the clients + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getIpv6Network() { + return this.backingStore.get("ipv6Network"); + } /** * Gets the lastUpdateDateTime property value. When the configuration was last updated * @return a {@link OffsetDateTime} @@ -185,6 +194,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("disableUdpConnections", this.getDisableUdpConnections()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeCollectionOfPrimitiveValues("dnsServers", this.getDnsServers()); + writer.writeStringValue("ipv6Network", this.getIpv6Network()); writer.writeOffsetDateTimeValue("lastUpdateDateTime", this.getLastUpdateDateTime()); writer.writeIntegerValue("listenPort", this.getListenPort()); writer.writeStringValue("network", this.getNetwork()); @@ -237,6 +247,13 @@ public void setDisplayName(@jakarta.annotation.Nullable final String value) { public void setDnsServers(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("dnsServers", value); } + /** + * Sets the ipv6Network property value. The IPv6 subnet that will be used to allocate virtual address for the clients + * @param value Value to set for the ipv6Network property. + */ + public void setIpv6Network(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("ipv6Network", value); + } /** * Sets the lastUpdateDateTime property value. When the configuration was last updated * @param value Value to set for the lastUpdateDateTime property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/MobileAppTroubleshootingEvent.java b/src/main/java/com/microsoft/graph/beta/generated/models/MobileAppTroubleshootingEvent.java index bc24f9eca6f..202949e3f81 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/MobileAppTroubleshootingEvent.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/MobileAppTroubleshootingEvent.java @@ -36,7 +36,7 @@ public String getApplicationId() { return this.backingStore.get("applicationId"); } /** - * Gets the appLogCollectionRequests property value. Indicates collection of App Log Upload Request. + * Gets the appLogCollectionRequests property value. The collection property of AppLogUploadRequest. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -112,7 +112,7 @@ public void setApplicationId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("applicationId", value); } /** - * Sets the appLogCollectionRequests property value. Indicates collection of App Log Upload Request. + * Sets the appLogCollectionRequests property value. The collection property of AppLogUploadRequest. * @param value Value to set for the appLogCollectionRequests property. */ public void setAppLogCollectionRequests(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/NativeAuthenticationApisEnabled.java b/src/main/java/com/microsoft/graph/beta/generated/models/NativeAuthenticationApisEnabled.java new file mode 100644 index 00000000000..6f074fdc8bd --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/NativeAuthenticationApisEnabled.java @@ -0,0 +1,27 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum NativeAuthenticationApisEnabled implements ValuedEnum { + None("none"), + All("all"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + NativeAuthenticationApisEnabled(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static NativeAuthenticationApisEnabled forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "none": return None; + case "all": return All; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Network.java b/src/main/java/com/microsoft/graph/beta/generated/models/Network.java new file mode 100644 index 00000000000..8700391a225 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Network.java @@ -0,0 +1,110 @@ +package com.microsoft.graph.beta.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; +/** + * Singleton for network operations on Microsoft Graph. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class Network implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link Network} and sets the default values. + */ + public Network() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link Network} + */ + @jakarta.annotation.Nonnull + public static Network createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new Network(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The 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/beta/generated/models/OnPremisesDirectorySynchronization.java b/src/main/java/com/microsoft/graph/beta/generated/models/OnPremisesDirectorySynchronization.java index 0b16efec0dd..4100158c6fc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/OnPremisesDirectorySynchronization.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/OnPremisesDirectorySynchronization.java @@ -25,7 +25,7 @@ public static OnPremisesDirectorySynchronization createFromDiscriminatorValue(@j return new OnPremisesDirectorySynchronization(); } /** - * Gets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. + * Gets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. Nullable. * @return a {@link OnPremisesDirectorySynchronizationConfiguration} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("features", this.getFeatures()); } /** - * Sets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. + * Sets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. Nullable. * @param value Value to set for the configuration property. */ public void setConfiguration(@jakarta.annotation.Nullable final OnPremisesDirectorySynchronizationConfiguration value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/OnlineMeetingBase.java b/src/main/java/com/microsoft/graph/beta/generated/models/OnlineMeetingBase.java index f3d1aa65fab..112ee29bd14 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/OnlineMeetingBase.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/OnlineMeetingBase.java @@ -49,7 +49,7 @@ public Boolean getAllowAttendeeToEnableMic() { return this.backingStore.get("allowAttendeeToEnableMic"); } /** - * Gets the allowBreakoutRooms property value. The allowBreakoutRooms property + * Gets the allowBreakoutRooms property value. Indicates whether breakout rooms are enabled for the meeting. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -57,7 +57,7 @@ public Boolean getAllowBreakoutRooms() { return this.backingStore.get("allowBreakoutRooms"); } /** - * Gets the allowedPresenters property value. Specifies who can be a presenter in a meeting. + * Gets the allowedPresenters property value. Specifies who can be a presenter in a meeting. Possible values are: everyone, organization, roleIsPresenter, organizer, unknownFutureValue. * @return a {@link OnlineMeetingPresenters} */ @jakarta.annotation.Nullable @@ -65,15 +65,15 @@ public OnlineMeetingPresenters getAllowedPresenters() { return this.backingStore.get("allowedPresenters"); } /** - * Gets the allowLiveShare property value. The allowLiveShare property - * @return a {@link Boolean} + * Gets the allowLiveShare property value. Indicates whether live share is enabled for the meeting. Possible values are: enabled, disabled, unknownFutureValue. + * @return a {@link MeetingLiveShareOptions} */ @jakarta.annotation.Nullable - public Boolean getAllowLiveShare() { + public MeetingLiveShareOptions getAllowLiveShare() { return this.backingStore.get("allowLiveShare"); } /** - * Gets the allowMeetingChat property value. Specifies the mode of meeting chat. + * Gets the allowMeetingChat property value. Specifies the mode of meeting chat. Possible values are: enabled, disabled, limited, unknownFutureValue. * @return a {@link MeetingChatMode} */ @jakarta.annotation.Nullable @@ -89,7 +89,7 @@ public Boolean getAllowParticipantsToChangeName() { return this.backingStore.get("allowParticipantsToChangeName"); } /** - * Gets the allowPowerPointSharing property value. The allowPowerPointSharing property + * Gets the allowPowerPointSharing property value. Indicates whether PowerPoint live is enabled for the meeting. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -121,7 +121,7 @@ public Boolean getAllowTranscription() { return this.backingStore.get("allowTranscription"); } /** - * Gets the allowWhiteboard property value. The allowWhiteboard property + * Gets the allowWhiteboard property value. Indicates whether whiteboard is enabled for the meeting. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -179,7 +179,7 @@ public Map> getFieldDeserializers deserializerMap.put("allowAttendeeToEnableMic", (n) -> { this.setAllowAttendeeToEnableMic(n.getBooleanValue()); }); deserializerMap.put("allowBreakoutRooms", (n) -> { this.setAllowBreakoutRooms(n.getBooleanValue()); }); deserializerMap.put("allowedPresenters", (n) -> { this.setAllowedPresenters(n.getEnumValue(OnlineMeetingPresenters::forValue)); }); - deserializerMap.put("allowLiveShare", (n) -> { this.setAllowLiveShare(n.getBooleanValue()); }); + deserializerMap.put("allowLiveShare", (n) -> { this.setAllowLiveShare(n.getEnumValue(MeetingLiveShareOptions::forValue)); }); deserializerMap.put("allowMeetingChat", (n) -> { this.setAllowMeetingChat(n.getEnumValue(MeetingChatMode::forValue)); }); deserializerMap.put("allowParticipantsToChangeName", (n) -> { this.setAllowParticipantsToChangeName(n.getBooleanValue()); }); deserializerMap.put("allowPowerPointSharing", (n) -> { this.setAllowPowerPointSharing(n.getBooleanValue()); }); @@ -304,7 +304,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("allowAttendeeToEnableMic", this.getAllowAttendeeToEnableMic()); writer.writeBooleanValue("allowBreakoutRooms", this.getAllowBreakoutRooms()); writer.writeEnumValue("allowedPresenters", this.getAllowedPresenters()); - writer.writeBooleanValue("allowLiveShare", this.getAllowLiveShare()); + writer.writeEnumValue("allowLiveShare", this.getAllowLiveShare()); writer.writeEnumValue("allowMeetingChat", this.getAllowMeetingChat()); writer.writeBooleanValue("allowParticipantsToChangeName", this.getAllowParticipantsToChangeName()); writer.writeBooleanValue("allowPowerPointSharing", this.getAllowPowerPointSharing()); @@ -344,28 +344,28 @@ public void setAllowAttendeeToEnableMic(@jakarta.annotation.Nullable final Boole this.backingStore.set("allowAttendeeToEnableMic", value); } /** - * Sets the allowBreakoutRooms property value. The allowBreakoutRooms property + * Sets the allowBreakoutRooms property value. Indicates whether breakout rooms are enabled for the meeting. * @param value Value to set for the allowBreakoutRooms property. */ public void setAllowBreakoutRooms(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("allowBreakoutRooms", value); } /** - * Sets the allowedPresenters property value. Specifies who can be a presenter in a meeting. + * Sets the allowedPresenters property value. Specifies who can be a presenter in a meeting. Possible values are: everyone, organization, roleIsPresenter, organizer, unknownFutureValue. * @param value Value to set for the allowedPresenters property. */ public void setAllowedPresenters(@jakarta.annotation.Nullable final OnlineMeetingPresenters value) { this.backingStore.set("allowedPresenters", value); } /** - * Sets the allowLiveShare property value. The allowLiveShare property + * Sets the allowLiveShare property value. Indicates whether live share is enabled for the meeting. Possible values are: enabled, disabled, unknownFutureValue. * @param value Value to set for the allowLiveShare property. */ - public void setAllowLiveShare(@jakarta.annotation.Nullable final Boolean value) { + public void setAllowLiveShare(@jakarta.annotation.Nullable final MeetingLiveShareOptions value) { this.backingStore.set("allowLiveShare", value); } /** - * Sets the allowMeetingChat property value. Specifies the mode of meeting chat. + * Sets the allowMeetingChat property value. Specifies the mode of meeting chat. Possible values are: enabled, disabled, limited, unknownFutureValue. * @param value Value to set for the allowMeetingChat property. */ public void setAllowMeetingChat(@jakarta.annotation.Nullable final MeetingChatMode value) { @@ -379,7 +379,7 @@ public void setAllowParticipantsToChangeName(@jakarta.annotation.Nullable final this.backingStore.set("allowParticipantsToChangeName", value); } /** - * Sets the allowPowerPointSharing property value. The allowPowerPointSharing property + * Sets the allowPowerPointSharing property value. Indicates whether PowerPoint live is enabled for the meeting. * @param value Value to set for the allowPowerPointSharing property. */ public void setAllowPowerPointSharing(@jakarta.annotation.Nullable final Boolean value) { @@ -407,7 +407,7 @@ public void setAllowTranscription(@jakarta.annotation.Nullable final Boolean val this.backingStore.set("allowTranscription", value); } /** - * Sets the allowWhiteboard property value. The allowWhiteboard property + * Sets the allowWhiteboard property value. Indicates whether whiteboard is enabled for the meeting. * @param value Value to set for the allowWhiteboard property. */ public void setAllowWhiteboard(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/OrganizationalBrandingTheme.java b/src/main/java/com/microsoft/graph/beta/generated/models/OrganizationalBrandingTheme.java new file mode 100644 index 00000000000..7b864323dfc --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/OrganizationalBrandingTheme.java @@ -0,0 +1,78 @@ +package com.microsoft.graph.beta.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 OrganizationalBrandingTheme extends Entity implements Parsable { + /** + * Instantiates a new {@link OrganizationalBrandingTheme} and sets the default values. + */ + public OrganizationalBrandingTheme() { + 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 OrganizationalBrandingTheme} + */ + @jakarta.annotation.Nonnull + public static OrganizationalBrandingTheme createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new OrganizationalBrandingTheme(); + } + /** + * 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("isDefaultTheme", (n) -> { this.setIsDefaultTheme(n.getBooleanValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the isDefaultTheme property value. The isDefaultTheme property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsDefaultTheme() { + return this.backingStore.get("isDefaultTheme"); + } + /** + * 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); + super.serialize(writer); + writer.writeBooleanValue("isDefaultTheme", this.getIsDefaultTheme()); + writer.writeStringValue("name", this.getName()); + } + /** + * Sets the isDefaultTheme property value. The isDefaultTheme property + * @param value Value to set for the isDefaultTheme property. + */ + public void setIsDefaultTheme(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isDefaultTheme", 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/beta/generated/models/OutlookCategory.java b/src/main/java/com/microsoft/graph/beta/generated/models/OutlookCategory.java index 30d7fb335a4..38faf1d0fb9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/OutlookCategory.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/OutlookCategory.java @@ -25,7 +25,7 @@ public static OutlookCategory createFromDiscriminatorValue(@jakarta.annotation.N return new OutlookCategory(); } /** - * Gets the color property value. A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more details, see the following note. + * Gets the color property value. A preset color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more information, see the following note. * @return a {@link CategoryColor} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public CategoryColor getColor() { return this.backingStore.get("color"); } /** - * Gets the displayName property value. A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only. + * Gets the displayName property value. A unique name that identifies a category in the user's mailbox. After a category is created, the name can't be changed. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,14 +62,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("displayName", this.getDisplayName()); } /** - * Sets the color property value. A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more details, see the following note. + * Sets the color property value. A preset color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more information, see the following note. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final CategoryColor value) { this.backingStore.set("color", value); } /** - * Sets the displayName property value. A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only. + * Sets the displayName property value. A unique name that identifies a category in the user's mailbox. After a category is created, the name can't be changed. Read-only. * @param value Value to set for the displayName property. */ public void setDisplayName(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/PasswordAuthenticationMethod.java b/src/main/java/com/microsoft/graph/beta/generated/models/PasswordAuthenticationMethod.java index 98894fbe8e3..26823becf0a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/PasswordAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/PasswordAuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -26,14 +25,6 @@ public static PasswordAuthenticationMethod createFromDiscriminatorValue(@jakarta Objects.requireNonNull(parseNode); return new PasswordAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time when this password was last updated. This property is currently not populated. Read-only. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * The deserialization information for the current model * @return a {@link Map>} @@ -41,7 +32,6 @@ public OffsetDateTime getCreatedDateTime() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("password", (n) -> { this.setPassword(n.getStringValue()); }); return deserializerMap; } @@ -60,16 +50,8 @@ public String getPassword() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeStringValue("password", this.getPassword()); } - /** - * Sets the createdDateTime property value. The date and time when this password was last updated. This property is currently not populated. Read-only. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. - * @param value Value to set for the createdDateTime property. - */ - public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { - this.backingStore.set("createdDateTime", value); - } /** * Sets the password property value. For security, the password is always returned as null from a LIST or GET operation. * @param value Value to set for the password property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/PasswordCredentialConfiguration.java b/src/main/java/com/microsoft/graph/beta/generated/models/PasswordCredentialConfiguration.java index 092406dfc76..6c955f7a7a2 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/PasswordCredentialConfiguration.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/PasswordCredentialConfiguration.java @@ -63,11 +63,12 @@ public BackingStore getBackingStore() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); + final HashMap> deserializerMap = new HashMap>(5); deserializerMap.put("maxLifetime", (n) -> { this.setMaxLifetime(n.getPeriodAndDurationValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("restrictForAppsCreatedAfterDateTime", (n) -> { this.setRestrictForAppsCreatedAfterDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("restrictionType", (n) -> { this.setRestrictionType(n.getEnumValue(AppCredentialRestrictionType::forValue)); }); + deserializerMap.put("state", (n) -> { this.setState(n.getEnumValue(AppManagementRestrictionState::forValue)); }); return deserializerMap; } /** @@ -102,6 +103,14 @@ public OffsetDateTime getRestrictForAppsCreatedAfterDateTime() { public AppCredentialRestrictionType getRestrictionType() { return this.backingStore.get("restrictionType"); } + /** + * Gets the state property value. String value that indicates if the restriction is evaluated. The possible values are: enabled, disabled, and unknownFutureValue. If enabled, the restriction is evaluated. If disabled, the restriction isn't evaluated or enforced. + * @return a {@link AppManagementRestrictionState} + */ + @jakarta.annotation.Nullable + public AppManagementRestrictionState getState() { + return this.backingStore.get("state"); + } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model @@ -112,6 +121,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeOffsetDateTimeValue("restrictForAppsCreatedAfterDateTime", this.getRestrictForAppsCreatedAfterDateTime()); writer.writeEnumValue("restrictionType", this.getRestrictionType()); + writer.writeEnumValue("state", this.getState()); writer.writeAdditionalData(this.getAdditionalData()); } /** @@ -157,4 +167,11 @@ public void setRestrictForAppsCreatedAfterDateTime(@jakarta.annotation.Nullable public void setRestrictionType(@jakarta.annotation.Nullable final AppCredentialRestrictionType value) { this.backingStore.set("restrictionType", value); } + /** + * Sets the state property value. String value that indicates if the restriction is evaluated. The possible values are: enabled, disabled, and unknownFutureValue. If enabled, the restriction is evaluated. If disabled, the restriction isn't evaluated or enforced. + * @param value Value to set for the state property. + */ + public void setState(@jakarta.annotation.Nullable final AppManagementRestrictionState value) { + this.backingStore.set("state", value); + } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/PasswordlessMicrosoftAuthenticatorAuthenticationMethod.java b/src/main/java/com/microsoft/graph/beta/generated/models/PasswordlessMicrosoftAuthenticatorAuthenticationMethod.java index f599c3546a4..6feee47430e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/PasswordlessMicrosoftAuthenticatorAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/PasswordlessMicrosoftAuthenticatorAuthenticationMethod.java @@ -26,14 +26,6 @@ public static PasswordlessMicrosoftAuthenticatorAuthenticationMethod createFromD Objects.requireNonNull(parseNode); return new PasswordlessMicrosoftAuthenticatorAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The createdDateTime property - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * Gets the creationDateTime property value. The timestamp when this method was registered to the user. * @return a {@link OffsetDateTime} @@ -65,7 +57,6 @@ public String getDisplayName() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("creationDateTime", (n) -> { this.setCreationDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("device", (n) -> { this.setDevice(n.getObjectValue(Device::createFromDiscriminatorValue)); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); @@ -78,18 +69,10 @@ public Map> getFieldDeserializers public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeOffsetDateTimeValue("creationDateTime", this.getCreationDateTime()); writer.writeObjectValue("device", this.getDevice()); writer.writeStringValue("displayName", this.getDisplayName()); } - /** - * Sets the createdDateTime property value. The createdDateTime property - * @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 creationDateTime property value. The timestamp when this method was registered to the user. * @param value Value to set for the creationDateTime property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/PerUserMfaState.java b/src/main/java/com/microsoft/graph/beta/generated/models/PerUserMfaState.java new file mode 100644 index 00000000000..14f2bb10be9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/PerUserMfaState.java @@ -0,0 +1,29 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum PerUserMfaState implements ValuedEnum { + Disabled("disabled"), + Enforced("enforced"), + Enabled("enabled"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + PerUserMfaState(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static PerUserMfaState forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "disabled": return Disabled; + case "enforced": return Enforced; + case "enabled": return Enabled; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/PlatformCredentialAuthenticationMethod.java b/src/main/java/com/microsoft/graph/beta/generated/models/PlatformCredentialAuthenticationMethod.java index 419da77a567..c4ce52b3816 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/PlatformCredentialAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/PlatformCredentialAuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -26,14 +25,6 @@ public static PlatformCredentialAuthenticationMethod createFromDiscriminatorValu Objects.requireNonNull(parseNode); return new PlatformCredentialAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time that this Platform Credential Key was registered. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * Gets the device property value. The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. * @return a {@link Device} @@ -57,7 +48,6 @@ public String getDisplayName() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("device", (n) -> { this.setDevice(n.getObjectValue(Device::createFromDiscriminatorValue)); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("keyStrength", (n) -> { this.setKeyStrength(n.getEnumValue(AuthenticationMethodKeyStrength::forValue)); }); @@ -87,19 +77,11 @@ public AuthenticationMethodPlatform getPlatform() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeObjectValue("device", this.getDevice()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeEnumValue("keyStrength", this.getKeyStrength()); writer.writeEnumValue("platform", this.getPlatform()); } - /** - * Sets the createdDateTime property value. The date and time that this Platform Credential Key was registered. - * @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 device property value. The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. * @param value Value to set for the device property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/PlatformType.java b/src/main/java/com/microsoft/graph/beta/generated/models/PlatformType.java index dfc015e5ab9..36e75418078 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/PlatformType.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/PlatformType.java @@ -8,20 +8,22 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public enum PlatformType implements ValuedEnum { - /** None Platform Type */ + /** None */ None("none"), - /** Android Platform Type */ + /** Android */ Android("android"), - /** Android Enterprise Platform Type */ - AndroidEnterprise("androidEnterprise"), - /** iOS Platform Type */ + /** iOS */ IOS("iOS"), - /** MacOS Platform Type */ + /** MacOS */ MacOS("macOS"), /** Windows 10X Platform Type */ Windows10X("windows10X"), - /** Windows 10 Platform Type */ - Windows10("windows10"); + /** Windows 10 */ + Windows10("windows10"), + /** Linux */ + Linux("linux"), + /** UnknownFutureValue */ + UnknownFutureValue("unknownFutureValue"); public final String value; PlatformType(final String value) { this.value = value; @@ -34,11 +36,12 @@ public static PlatformType forValue(@jakarta.annotation.Nonnull final String sea switch(searchValue) { case "none": return None; case "android": return Android; - case "androidEnterprise": return AndroidEnterprise; case "iOS": return IOS; case "macOS": return MacOS; case "windows10X": return Windows10X; case "windows10": return Windows10; + case "linux": return Linux; + case "unknownFutureValue": return UnknownFutureValue; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/PositionDetail.java b/src/main/java/com/microsoft/graph/beta/generated/models/PositionDetail.java index 182ed0e039a..46ddd2c00a3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/PositionDetail.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/PositionDetail.java @@ -86,7 +86,7 @@ public LocalDate getEndMonthYear() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(10); + final HashMap> deserializerMap = new HashMap>(12); deserializerMap.put("company", (n) -> { this.setCompany(n.getObjectValue(CompanyDetail::createFromDiscriminatorValue)); }); deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); }); deserializerMap.put("endMonthYear", (n) -> { this.setEndMonthYear(n.getLocalDateValue()); }); @@ -95,6 +95,8 @@ public Map> getFieldDeserializers deserializerMap.put("level", (n) -> { this.setLevel(n.getStringValue()); }); deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); deserializerMap.put("role", (n) -> { this.setRole(n.getStringValue()); }); + deserializerMap.put("secondaryJobTitle", (n) -> { this.setSecondaryJobTitle(n.getStringValue()); }); + deserializerMap.put("secondaryRole", (n) -> { this.setSecondaryRole(n.getStringValue()); }); deserializerMap.put("startMonthYear", (n) -> { this.setStartMonthYear(n.getLocalDateValue()); }); deserializerMap.put("summary", (n) -> { this.setSummary(n.getStringValue()); }); return deserializerMap; @@ -139,6 +141,22 @@ public String getOdataType() { public String getRole() { return this.backingStore.get("role"); } + /** + * Gets the secondaryJobTitle property value. The secondaryJobTitle property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSecondaryJobTitle() { + return this.backingStore.get("secondaryJobTitle"); + } + /** + * Gets the secondaryRole property value. The secondaryRole property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSecondaryRole() { + return this.backingStore.get("secondaryRole"); + } /** * Gets the startMonthYear property value. The start month and year of the position. * @return a {@link LocalDate} @@ -169,6 +187,8 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("level", this.getLevel()); writer.writeStringValue("@odata.type", this.getOdataType()); writer.writeStringValue("role", this.getRole()); + writer.writeStringValue("secondaryJobTitle", this.getSecondaryJobTitle()); + writer.writeStringValue("secondaryRole", this.getSecondaryRole()); writer.writeLocalDateValue("startMonthYear", this.getStartMonthYear()); writer.writeStringValue("summary", this.getSummary()); writer.writeAdditionalData(this.getAdditionalData()); @@ -244,6 +264,20 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { public void setRole(@jakarta.annotation.Nullable final String value) { this.backingStore.set("role", value); } + /** + * Sets the secondaryJobTitle property value. The secondaryJobTitle property + * @param value Value to set for the secondaryJobTitle property. + */ + public void setSecondaryJobTitle(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("secondaryJobTitle", value); + } + /** + * Sets the secondaryRole property value. The secondaryRole property + * @param value Value to set for the secondaryRole property. + */ + public void setSecondaryRole(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("secondaryRole", value); + } /** * Sets the startMonthYear property value. The start month and year of the position. * @param value Value to set for the startMonthYear property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/PublicClientApplication.java b/src/main/java/com/microsoft/graph/beta/generated/models/PublicClientApplication.java index 5f97841e8f6..cc1a8d0eef9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/PublicClientApplication.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/PublicClientApplication.java @@ -75,7 +75,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. + * Gets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -115,7 +115,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. + * Sets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth. * @param value Value to set for the redirectUris property. */ public void setRedirectUris(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/RemoteActionAudit.java b/src/main/java/com/microsoft/graph/beta/generated/models/RemoteActionAudit.java index 803e7fe9907..7003dd1c976 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/RemoteActionAudit.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/RemoteActionAudit.java @@ -44,6 +44,14 @@ public RemoteAction getAction() { public ActionState getActionState() { return this.backingStore.get("actionState"); } + /** + * Gets the bulkDeviceActionId property value. BulkAction ID + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getBulkDeviceActionId() { + return this.backingStore.get("bulkDeviceActionId"); + } /** * Gets the deviceDisplayName property value. Intune device name. * @return a {@link String} @@ -77,6 +85,7 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("action", (n) -> { this.setAction(n.getEnumValue(RemoteAction::forValue)); }); deserializerMap.put("actionState", (n) -> { this.setActionState(n.getEnumValue(ActionState::forValue)); }); + deserializerMap.put("bulkDeviceActionId", (n) -> { this.setBulkDeviceActionId(n.getStringValue()); }); deserializerMap.put("deviceDisplayName", (n) -> { this.setDeviceDisplayName(n.getStringValue()); }); deserializerMap.put("deviceIMEI", (n) -> { this.setDeviceIMEI(n.getStringValue()); }); deserializerMap.put("deviceOwnerUserPrincipalName", (n) -> { this.setDeviceOwnerUserPrincipalName(n.getStringValue()); }); @@ -127,6 +136,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeEnumValue("action", this.getAction()); writer.writeEnumValue("actionState", this.getActionState()); + writer.writeStringValue("bulkDeviceActionId", this.getBulkDeviceActionId()); writer.writeStringValue("deviceDisplayName", this.getDeviceDisplayName()); writer.writeStringValue("deviceIMEI", this.getDeviceIMEI()); writer.writeStringValue("deviceOwnerUserPrincipalName", this.getDeviceOwnerUserPrincipalName()); @@ -149,6 +159,13 @@ public void setAction(@jakarta.annotation.Nullable final RemoteAction value) { public void setActionState(@jakarta.annotation.Nullable final ActionState value) { this.backingStore.set("actionState", value); } + /** + * Sets the bulkDeviceActionId property value. BulkAction ID + * @param value Value to set for the bulkDeviceActionId property. + */ + public void setBulkDeviceActionId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("bulkDeviceActionId", value); + } /** * Sets the deviceDisplayName property value. Intune device name. * @param value Value to set for the deviceDisplayName property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ServicePrincipalSignInActivity.java b/src/main/java/com/microsoft/graph/beta/generated/models/ServicePrincipalSignInActivity.java index 2298fae8370..a53b04fb2e6 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ServicePrincipalSignInActivity.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ServicePrincipalSignInActivity.java @@ -25,7 +25,7 @@ public static ServicePrincipalSignInActivity createFromDiscriminatorValue(@jakar return new ServicePrincipalSignInActivity(); } /** - * Gets the appId property value. The application ID of the resource. + * Gets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credentialed resource application. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -102,7 +102,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("lastSignInActivity", this.getLastSignInActivity()); } /** - * Sets the appId property value. The application ID of the resource. + * Sets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credentialed resource application. * @param value Value to set for the appId property. */ public void setAppId(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ServiceStatus.java b/src/main/java/com/microsoft/graph/beta/generated/models/ServiceStatus.java index 12acc7cd90c..134d78197df 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ServiceStatus.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/ServiceStatus.java @@ -65,7 +65,7 @@ public BackupServiceConsumer getBackupServiceConsumer() { return this.backingStore.get("backupServiceConsumer"); } /** - * Gets the disableReason property value. The reason the service is disabled. The possible values are: none, invalidBillingProfile, userRequested, unknownFutureValue. + * Gets the disableReason property value. The reason the service is disabled. The possible values are: none, controllerServiceAppDeleted, invalidBillingProfile, userRequested, unknownFutureValue. * @return a {@link DisableReason} */ @jakarta.annotation.Nullable @@ -176,7 +176,7 @@ public void setBackupServiceConsumer(@jakarta.annotation.Nullable final BackupSe this.backingStore.set("backupServiceConsumer", value); } /** - * Sets the disableReason property value. The reason the service is disabled. The possible values are: none, invalidBillingProfile, userRequested, unknownFutureValue. + * Sets the disableReason property value. The reason the service is disabled. The possible values are: none, controllerServiceAppDeleted, invalidBillingProfile, userRequested, unknownFutureValue. * @param value Value to set for the disableReason property. */ public void setDisableReason(@jakarta.annotation.Nullable final DisableReason value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/ShiftWorkCloudPcAccessState.java b/src/main/java/com/microsoft/graph/beta/generated/models/ShiftWorkCloudPcAccessState.java deleted file mode 100644 index 1b9c494359a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/models/ShiftWorkCloudPcAccessState.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.microsoft.graph.beta.models; - -import com.microsoft.kiota.serialization.ValuedEnum; -import java.util.Objects; - -@jakarta.annotation.Generated("com.microsoft.kiota") -public enum ShiftWorkCloudPcAccessState implements ValuedEnum { - Unassigned("unassigned"), - NoLicensesAvailable("noLicensesAvailable"), - ActivationFailed("activationFailed"), - Active("active"), - Activating("activating"), - UnknownFutureValue("unknownFutureValue"), - StandbyMode("standbyMode"); - public final String value; - ShiftWorkCloudPcAccessState(final String value) { - this.value = value; - } - @jakarta.annotation.Nonnull - public String getValue() { return this.value; } - @jakarta.annotation.Nullable - public static ShiftWorkCloudPcAccessState forValue(@jakarta.annotation.Nonnull final String searchValue) { - Objects.requireNonNull(searchValue); - switch(searchValue) { - case "unassigned": return Unassigned; - case "noLicensesAvailable": return NoLicensesAvailable; - case "activationFailed": return ActivationFailed; - case "active": return Active; - case "activating": return Activating; - case "unknownFutureValue": return UnknownFutureValue; - case "standbyMode": return StandbyMode; - default: return null; - } - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/SignIn.java b/src/main/java/com/microsoft/graph/beta/generated/models/SignIn.java index bf693f22898..2084a2a0dd1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/SignIn.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/SignIn.java @@ -107,7 +107,7 @@ public java.util.List getAuthenticationMethodsUsed() { return this.backingStore.get("authenticationMethodsUsed"); } /** - * Gets the authenticationProcessingDetails property value. More authentication processing details, such as the agent name for PTA and PHS, or a server or farm name for federated authentication. + * Gets the authenticationProcessingDetails property value. More authentication processing details, such as the agent name for PTA and PHS, or a server or farm name for federated authentication. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -171,7 +171,7 @@ public ClientCredentialType getClientCredentialType() { return this.backingStore.get("clientCredentialType"); } /** - * Gets the conditionalAccessAudiences property value. A list that indicates the audience that was evaluated by Conditional Access during a sign-in event. Supports $filter (eq). + * Gets the conditionalAccessAudiences property value. A list that indicates the audience that Conditional Access evaluated during a sign-in event. Supports $filter (eq). * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -187,7 +187,7 @@ public ConditionalAccessStatus getConditionalAccessStatus() { return this.backingStore.get("conditionalAccessStatus"); } /** - * Gets the correlationId property value. The identifier the client sends when sign-in is initiated. This is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). + * Gets the correlationId property value. The identifier the client sends when sign-in is initiated. This property is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -330,7 +330,7 @@ public String getHomeTenantId() { return this.backingStore.get("homeTenantId"); } /** - * Gets the homeTenantName property value. For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant has provided affirmative consent to Microsoft Entra ID to show the tenant content. + * Gets the homeTenantName property value. For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant provides affirmative consent to Microsoft Entra ID to show the tenant content. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -650,7 +650,7 @@ public String getUserId() { return this.backingStore.get("userId"); } /** - * Gets the userPrincipalName property value. The UPN of the user. Supports $filter (eq, startsWith). + * Gets the userPrincipalName property value. User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). * @return a {@link String} */ @jakarta.annotation.Nullable @@ -814,7 +814,7 @@ public void setAuthenticationMethodsUsed(@jakarta.annotation.Nullable final java this.backingStore.set("authenticationMethodsUsed", value); } /** - * Sets the authenticationProcessingDetails property value. More authentication processing details, such as the agent name for PTA and PHS, or a server or farm name for federated authentication. + * Sets the authenticationProcessingDetails property value. More authentication processing details, such as the agent name for PTA and PHS, or a server or farm name for federated authentication. * @param value Value to set for the authenticationProcessingDetails property. */ public void setAuthenticationProcessingDetails(@jakarta.annotation.Nullable final java.util.List value) { @@ -870,7 +870,7 @@ public void setClientCredentialType(@jakarta.annotation.Nullable final ClientCre this.backingStore.set("clientCredentialType", value); } /** - * Sets the conditionalAccessAudiences property value. A list that indicates the audience that was evaluated by Conditional Access during a sign-in event. Supports $filter (eq). + * Sets the conditionalAccessAudiences property value. A list that indicates the audience that Conditional Access evaluated during a sign-in event. Supports $filter (eq). * @param value Value to set for the conditionalAccessAudiences property. */ public void setConditionalAccessAudiences(@jakarta.annotation.Nullable final java.util.List value) { @@ -884,7 +884,7 @@ public void setConditionalAccessStatus(@jakarta.annotation.Nullable final Condit this.backingStore.set("conditionalAccessStatus", value); } /** - * Sets the correlationId property value. The identifier the client sends when sign-in is initiated. This is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). + * Sets the correlationId property value. The identifier the client sends when sign-in is initiated. This property is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). * @param value Value to set for the correlationId property. */ public void setCorrelationId(@jakarta.annotation.Nullable final String value) { @@ -940,7 +940,7 @@ public void setHomeTenantId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("homeTenantId", value); } /** - * Sets the homeTenantName property value. For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant has provided affirmative consent to Microsoft Entra ID to show the tenant content. + * Sets the homeTenantName property value. For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant provides affirmative consent to Microsoft Entra ID to show the tenant content. * @param value Value to set for the homeTenantName property. */ public void setHomeTenantName(@jakarta.annotation.Nullable final String value) { @@ -1220,7 +1220,7 @@ public void setUserId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("userId", value); } /** - * Sets the userPrincipalName property value. The UPN of the user. Supports $filter (eq, startsWith). + * Sets the userPrincipalName property value. User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). * @param value Value to set for the userPrincipalName property. */ public void setUserPrincipalName(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Site.java b/src/main/java/com/microsoft/graph/beta/generated/models/Site.java index 0329519ec60..ba01af36874 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/Site.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Site.java @@ -42,6 +42,14 @@ public ItemAnalytics getAnalytics() { public java.util.List getColumns() { return this.backingStore.get("columns"); } + /** + * Gets the contentModels property value. The collection of content models applied to this site. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getContentModels() { + return this.backingStore.get("contentModels"); + } /** * Gets the contentTypes property value. The collection of content types defined for this site. * @return a {@link java.util.List} @@ -66,6 +74,14 @@ public Deleted getDeleted() { public String getDisplayName() { return this.backingStore.get("displayName"); } + /** + * Gets the documentProcessingJobs property value. The document processing jobs running on this site. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getDocumentProcessingJobs() { + return this.backingStore.get("documentProcessingJobs"); + } /** * Gets the drive property value. The default drive (document library) for this site. * @return a {@link Drive} @@ -99,9 +115,11 @@ public Map> getFieldDeserializers final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); deserializerMap.put("analytics", (n) -> { this.setAnalytics(n.getObjectValue(ItemAnalytics::createFromDiscriminatorValue)); }); deserializerMap.put("columns", (n) -> { this.setColumns(n.getCollectionOfObjectValues(ColumnDefinition::createFromDiscriminatorValue)); }); + deserializerMap.put("contentModels", (n) -> { this.setContentModels(n.getCollectionOfObjectValues(ContentModel::createFromDiscriminatorValue)); }); deserializerMap.put("contentTypes", (n) -> { this.setContentTypes(n.getCollectionOfObjectValues(ContentType::createFromDiscriminatorValue)); }); deserializerMap.put("deleted", (n) -> { this.setDeleted(n.getObjectValue(Deleted::createFromDiscriminatorValue)); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("documentProcessingJobs", (n) -> { this.setDocumentProcessingJobs(n.getCollectionOfObjectValues(DocumentProcessingJob::createFromDiscriminatorValue)); }); deserializerMap.put("drive", (n) -> { this.setDrive(n.getObjectValue(Drive::createFromDiscriminatorValue)); }); deserializerMap.put("drives", (n) -> { this.setDrives(n.getCollectionOfObjectValues(Drive::createFromDiscriminatorValue)); }); deserializerMap.put("externalColumns", (n) -> { this.setExternalColumns(n.getCollectionOfObjectValues(ColumnDefinition::createFromDiscriminatorValue)); }); @@ -251,9 +269,11 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ super.serialize(writer); writer.writeObjectValue("analytics", this.getAnalytics()); writer.writeCollectionOfObjectValues("columns", this.getColumns()); + writer.writeCollectionOfObjectValues("contentModels", this.getContentModels()); writer.writeCollectionOfObjectValues("contentTypes", this.getContentTypes()); writer.writeObjectValue("deleted", this.getDeleted()); writer.writeStringValue("displayName", this.getDisplayName()); + writer.writeCollectionOfObjectValues("documentProcessingJobs", this.getDocumentProcessingJobs()); writer.writeObjectValue("drive", this.getDrive()); writer.writeCollectionOfObjectValues("drives", this.getDrives()); writer.writeCollectionOfObjectValues("externalColumns", this.getExternalColumns()); @@ -287,6 +307,13 @@ public void setAnalytics(@jakarta.annotation.Nullable final ItemAnalytics value) public void setColumns(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("columns", value); } + /** + * Sets the contentModels property value. The collection of content models applied to this site. + * @param value Value to set for the contentModels property. + */ + public void setContentModels(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("contentModels", value); + } /** * Sets the contentTypes property value. The collection of content types defined for this site. * @param value Value to set for the contentTypes property. @@ -308,6 +335,13 @@ public void setDeleted(@jakarta.annotation.Nullable final Deleted value) { public void setDisplayName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("displayName", value); } + /** + * Sets the documentProcessingJobs property value. The document processing jobs running on this site. + * @param value Value to set for the documentProcessingJobs property. + */ + public void setDocumentProcessingJobs(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("documentProcessingJobs", value); + } /** * Sets the drive property value. The default drive (document library) for this site. * @param value Value to set for the drive property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/StrongAuthenticationRequirements.java b/src/main/java/com/microsoft/graph/beta/generated/models/StrongAuthenticationRequirements.java new file mode 100644 index 00000000000..6e40eff0c25 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/StrongAuthenticationRequirements.java @@ -0,0 +1,124 @@ +package com.microsoft.graph.beta.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 StrongAuthenticationRequirements implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link StrongAuthenticationRequirements} and sets the default values. + */ + public StrongAuthenticationRequirements() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link StrongAuthenticationRequirements} + */ + @jakarta.annotation.Nonnull + public static StrongAuthenticationRequirements createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new StrongAuthenticationRequirements(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("perUserMfaState", (n) -> { this.setPerUserMfaState(n.getEnumValue(PerUserMfaState::forValue)); }); + 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 perUserMfaState property value. Sets the per-user MFA state for the user. The possible values are: disabled, enforced, enabled, unknownFutureValue. + * @return a {@link PerUserMfaState} + */ + @jakarta.annotation.Nullable + public PerUserMfaState getPerUserMfaState() { + return this.backingStore.get("perUserMfaState"); + } + /** + * Serializes information the current 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.writeEnumValue("perUserMfaState", this.getPerUserMfaState()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value 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 perUserMfaState property value. Sets the per-user MFA state for the user. The possible values are: disabled, enforced, enabled, unknownFutureValue. + * @param value Value to set for the perUserMfaState property. + */ + public void setPerUserMfaState(@jakarta.annotation.Nullable final PerUserMfaState value) { + this.backingStore.set("perUserMfaState", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/SynchronizationSchedule.java b/src/main/java/com/microsoft/graph/beta/generated/models/SynchronizationSchedule.java index 90c245013e8..fed814f481c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/SynchronizationSchedule.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/SynchronizationSchedule.java @@ -79,7 +79,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of 1 month. + * Gets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. * @return a {@link PeriodAndDuration} */ @jakarta.annotation.Nullable @@ -137,7 +137,7 @@ public void setExpiration(@jakarta.annotation.Nullable final OffsetDateTime valu this.backingStore.set("expiration", value); } /** - * Sets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of 1 month. + * Sets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. * @param value Value to set for the interval property. */ public void setInterval(@jakarta.annotation.Nullable final PeriodAndDuration value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/Teamwork.java b/src/main/java/com/microsoft/graph/beta/generated/models/Teamwork.java index d42676955ae..559973d8148 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/Teamwork.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/Teamwork.java @@ -74,7 +74,7 @@ public Boolean getIsTeamsEnabled() { return this.backingStore.get("isTeamsEnabled"); } /** - * Gets the region property value. Represents the region of the organization. + * Gets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -150,7 +150,7 @@ public void setIsTeamsEnabled(@jakarta.annotation.Nullable final Boolean value) this.backingStore.set("isTeamsEnabled", value); } /** - * Sets the region property value. Represents the region of the organization. + * Sets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @param value Value to set for the region property. */ public void setRegion(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/TemporaryAccessPassAuthenticationMethod.java b/src/main/java/com/microsoft/graph/beta/generated/models/TemporaryAccessPassAuthenticationMethod.java index 4363907fd02..87dc2db8efe 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/TemporaryAccessPassAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/TemporaryAccessPassAuthenticationMethod.java @@ -26,14 +26,6 @@ public static TemporaryAccessPassAuthenticationMethod createFromDiscriminatorVal Objects.requireNonNull(parseNode); return new TemporaryAccessPassAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time when the Temporary Access Pass was created. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * The deserialization information for the current model * @return a {@link Map>} @@ -41,7 +33,6 @@ public OffsetDateTime getCreatedDateTime() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("isUsableOnce", (n) -> { this.setIsUsableOnce(n.getBooleanValue()); }); deserializerMap.put("lifetimeInMinutes", (n) -> { this.setLifetimeInMinutes(n.getIntegerValue()); }); deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getOffsetDateTimeValue()); }); @@ -87,19 +78,11 @@ public String getTemporaryAccessPass() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeBooleanValue("isUsableOnce", this.getIsUsableOnce()); writer.writeIntegerValue("lifetimeInMinutes", this.getLifetimeInMinutes()); writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime()); writer.writeStringValue("temporaryAccessPass", this.getTemporaryAccessPass()); } - /** - * Sets the createdDateTime property value. The date and time when the Temporary Access Pass was created. - * @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 isUsableOnce property value. Determines whether the pass is limited to a one-time use. If true, the pass can be used once; if false, the pass can be used multiple times within the Temporary Access Pass lifetime. * @param value Value to set for the isUsableOnce property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/TenantAppManagementPolicy.java b/src/main/java/com/microsoft/graph/beta/generated/models/TenantAppManagementPolicy.java index 35cec9481c5..29540dfb836 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/TenantAppManagementPolicy.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/TenantAppManagementPolicy.java @@ -27,10 +27,10 @@ public static TenantAppManagementPolicy createFromDiscriminatorValue(@jakarta.an } /** * Gets the applicationRestrictions property value. Restrictions that apply as default to all application objects in the tenant. - * @return a {@link AppManagementConfiguration} + * @return a {@link AppManagementApplicationConfiguration} */ @jakarta.annotation.Nullable - public AppManagementConfiguration getApplicationRestrictions() { + public AppManagementApplicationConfiguration getApplicationRestrictions() { return this.backingStore.get("applicationRestrictions"); } /** @@ -40,9 +40,9 @@ public AppManagementConfiguration getApplicationRestrictions() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("applicationRestrictions", (n) -> { this.setApplicationRestrictions(n.getObjectValue(AppManagementConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("applicationRestrictions", (n) -> { this.setApplicationRestrictions(n.getObjectValue(AppManagementApplicationConfiguration::createFromDiscriminatorValue)); }); deserializerMap.put("isEnabled", (n) -> { this.setIsEnabled(n.getBooleanValue()); }); - deserializerMap.put("servicePrincipalRestrictions", (n) -> { this.setServicePrincipalRestrictions(n.getObjectValue(AppManagementConfiguration::createFromDiscriminatorValue)); }); + deserializerMap.put("servicePrincipalRestrictions", (n) -> { this.setServicePrincipalRestrictions(n.getObjectValue(AppManagementServicePrincipalConfiguration::createFromDiscriminatorValue)); }); return deserializerMap; } /** @@ -55,10 +55,10 @@ public Boolean getIsEnabled() { } /** * Gets the servicePrincipalRestrictions property value. Restrictions that apply as default to all service principal objects in the tenant. - * @return a {@link AppManagementConfiguration} + * @return a {@link AppManagementServicePrincipalConfiguration} */ @jakarta.annotation.Nullable - public AppManagementConfiguration getServicePrincipalRestrictions() { + public AppManagementServicePrincipalConfiguration getServicePrincipalRestrictions() { return this.backingStore.get("servicePrincipalRestrictions"); } /** @@ -76,7 +76,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ * Sets the applicationRestrictions property value. Restrictions that apply as default to all application objects in the tenant. * @param value Value to set for the applicationRestrictions property. */ - public void setApplicationRestrictions(@jakarta.annotation.Nullable final AppManagementConfiguration value) { + public void setApplicationRestrictions(@jakarta.annotation.Nullable final AppManagementApplicationConfiguration value) { this.backingStore.set("applicationRestrictions", value); } /** @@ -90,7 +90,7 @@ public void setIsEnabled(@jakarta.annotation.Nullable final Boolean value) { * Sets the servicePrincipalRestrictions property value. Restrictions that apply as default to all service principal objects in the tenant. * @param value Value to set for the servicePrincipalRestrictions property. */ - public void setServicePrincipalRestrictions(@jakarta.annotation.Nullable final AppManagementConfiguration value) { + public void setServicePrincipalRestrictions(@jakarta.annotation.Nullable final AppManagementServicePrincipalConfiguration value) { this.backingStore.set("servicePrincipalRestrictions", value); } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/UnifiedRoleAssignment.java b/src/main/java/com/microsoft/graph/beta/generated/models/UnifiedRoleAssignment.java index d605089699d..8d5c378d220 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/UnifiedRoleAssignment.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/UnifiedRoleAssignment.java @@ -25,7 +25,7 @@ public static UnifiedRoleAssignment createFromDiscriminatorValue(@jakarta.annota return new UnifiedRoleAssignment(); } /** - * Gets the appScope property value. Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Gets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} */ @jakarta.annotation.Nullable @@ -49,7 +49,7 @@ public String getCondition() { return this.backingStore.get("condition"); } /** - * Gets the directoryScope property value. The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Gets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} */ @jakarta.annotation.Nullable @@ -85,7 +85,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the principal property value. The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Gets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} */ @jakarta.annotation.Nullable @@ -117,7 +117,7 @@ public String getResourceScope() { return this.backingStore.get("resourceScope"); } /** - * Gets the roleDefinition property value. The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * Gets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} */ @jakarta.annotation.Nullable @@ -152,7 +152,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("roleDefinitionId", this.getRoleDefinitionId()); } /** - * Sets the appScope property value. Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Sets the appScope property value. Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param value Value to set for the appScope property. */ public void setAppScope(@jakarta.annotation.Nullable final AppScope value) { @@ -173,7 +173,7 @@ public void setCondition(@jakarta.annotation.Nullable final String value) { this.backingStore.set("condition", value); } /** - * Sets the directoryScope property value. The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Sets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param value Value to set for the directoryScope property. */ public void setDirectoryScope(@jakarta.annotation.Nullable final DirectoryObject value) { @@ -187,7 +187,7 @@ public void setDirectoryScopeId(@jakarta.annotation.Nullable final String value) this.backingStore.set("directoryScopeId", value); } /** - * Sets the principal property value. The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Sets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param value Value to set for the principal property. */ public void setPrincipal(@jakarta.annotation.Nullable final DirectoryObject value) { @@ -215,7 +215,7 @@ public void setResourceScope(@jakarta.annotation.Nullable final String value) { this.backingStore.set("resourceScope", value); } /** - * Sets the roleDefinition property value. The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * Sets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. * @param value Value to set for the roleDefinition property. */ public void setRoleDefinition(@jakarta.annotation.Nullable final UnifiedRoleDefinition value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/UriUsageType.java b/src/main/java/com/microsoft/graph/beta/generated/models/UriUsageType.java new file mode 100644 index 00000000000..f74318d04b7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/UriUsageType.java @@ -0,0 +1,31 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.ValuedEnum; +import java.util.Objects; + +@jakarta.annotation.Generated("com.microsoft.kiota") +public enum UriUsageType implements ValuedEnum { + RedirectUri("redirectUri"), + IdentifierUri("identifierUri"), + LoginUrl("loginUrl"), + LogoutUrl("logoutUrl"), + UnknownFutureValue("unknownFutureValue"); + public final String value; + UriUsageType(final String value) { + this.value = value; + } + @jakarta.annotation.Nonnull + public String getValue() { return this.value; } + @jakarta.annotation.Nullable + public static UriUsageType forValue(@jakarta.annotation.Nonnull final String searchValue) { + Objects.requireNonNull(searchValue); + switch(searchValue) { + case "redirectUri": return RedirectUri; + case "identifierUri": return IdentifierUri; + case "loginUrl": return LoginUrl; + case "logoutUrl": return LogoutUrl; + case "unknownFutureValue": return UnknownFutureValue; + default: return null; + } + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/User.java b/src/main/java/com/microsoft/graph/beta/generated/models/User.java index ab59baf1f56..27313a2df27 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/User.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/User.java @@ -615,6 +615,7 @@ public Map> getFieldDeserializers deserializerMap.put("signInActivity", (n) -> { this.setSignInActivity(n.getObjectValue(SignInActivity::createFromDiscriminatorValue)); }); deserializerMap.put("signInSessionsValidFromDateTime", (n) -> { this.setSignInSessionsValidFromDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("skills", (n) -> { this.setSkills(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("solutions", (n) -> { this.setSolutions(n.getObjectValue(UserSolutionRoot::createFromDiscriminatorValue)); }); deserializerMap.put("sponsors", (n) -> { this.setSponsors(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); }); deserializerMap.put("state", (n) -> { this.setState(n.getStringValue()); }); deserializerMap.put("streetAddress", (n) -> { this.setStreetAddress(n.getStringValue()); }); @@ -696,7 +697,7 @@ public InformationProtection getInformationProtection() { return this.backingStore.get("informationProtection"); } /** - * Gets the insights property value. The insights property + * Gets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. * @return a {@link ItemInsights} */ @jakarta.annotation.Nullable @@ -728,7 +729,7 @@ public Boolean getIsLicenseReconciliationNeeded() { return this.backingStore.get("isLicenseReconciliationNeeded"); } /** - * Gets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit, which requires a role scoped to the restricted administrative unit to manage. Default value is false. Read-only. To manage a user who is a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. + * Gets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit. Default value is false. Read-only. To manage a user who is a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -1319,6 +1320,14 @@ public OffsetDateTime getSignInSessionsValidFromDateTime() { public java.util.List getSkills() { return this.backingStore.get("skills"); } + /** + * Gets the solutions property value. The solutions property + * @return a {@link UserSolutionRoot} + */ + @jakarta.annotation.Nullable + public UserSolutionRoot getSolutions() { + return this.backingStore.get("solutions"); + } /** * Gets the sponsors property value. The users and groups responsible for this guest user's privileges in the tenant and keep the guest user's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. * @return a {@link java.util.List} @@ -1579,6 +1588,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("signInActivity", this.getSignInActivity()); writer.writeOffsetDateTimeValue("signInSessionsValidFromDateTime", this.getSignInSessionsValidFromDateTime()); writer.writeCollectionOfPrimitiveValues("skills", this.getSkills()); + writer.writeObjectValue("solutions", this.getSolutions()); writer.writeCollectionOfObjectValues("sponsors", this.getSponsors()); writer.writeStringValue("state", this.getState()); writer.writeStringValue("streetAddress", this.getStreetAddress()); @@ -2036,7 +2046,7 @@ public void setInformationProtection(@jakarta.annotation.Nullable final Informat this.backingStore.set("informationProtection", value); } /** - * Sets the insights property value. The insights property + * Sets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. * @param value Value to set for the insights property. */ public void setInsights(@jakarta.annotation.Nullable final ItemInsights value) { @@ -2064,7 +2074,7 @@ public void setIsLicenseReconciliationNeeded(@jakarta.annotation.Nullable final this.backingStore.set("isLicenseReconciliationNeeded", value); } /** - * Sets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit, which requires a role scoped to the restricted administrative unit to manage. Default value is false. Read-only. To manage a user who is a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. + * Sets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit. Default value is false. Read-only. To manage a user who is a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. * @param value Value to set for the isManagementRestricted property. */ public void setIsManagementRestricted(@jakarta.annotation.Nullable final Boolean value) { @@ -2581,6 +2591,13 @@ public void setSignInSessionsValidFromDateTime(@jakarta.annotation.Nullable fina public void setSkills(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("skills", value); } + /** + * Sets the solutions property value. The solutions property + * @param value Value to set for the solutions property. + */ + public void setSolutions(@jakarta.annotation.Nullable final UserSolutionRoot value) { + this.backingStore.set("solutions", value); + } /** * Sets the sponsors property value. The users and groups responsible for this guest user's privileges in the tenant and keep the guest user's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. * @param value Value to set for the sponsors property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/UserExperienceAnalyticsBatteryHealthDevicePerformance.java b/src/main/java/com/microsoft/graph/beta/generated/models/UserExperienceAnalyticsBatteryHealthDevicePerformance.java index 388b8f027ca..d01c3701500 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/UserExperienceAnalyticsBatteryHealthDevicePerformance.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/UserExperienceAnalyticsBatteryHealthDevicePerformance.java @@ -75,6 +75,22 @@ public java.util.List getDeviceBatteryTags() { public String getDeviceId() { return this.backingStore.get("deviceId"); } + /** + * Gets the deviceManufacturerName property value. The manufacturer name of the device. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDeviceManufacturerName() { + return this.backingStore.get("deviceManufacturerName"); + } + /** + * Gets the deviceModelName property value. The model name of the device. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDeviceModelName() { + return this.backingStore.get("deviceModelName"); + } /** * Gets the deviceName property value. Device friendly name. * @return a {@link String} @@ -104,6 +120,8 @@ public Map> getFieldDeserializers deserializerMap.put("deviceBatteryHealthScore", (n) -> { this.setDeviceBatteryHealthScore(n.getIntegerValue()); }); deserializerMap.put("deviceBatteryTags", (n) -> { this.setDeviceBatteryTags(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("deviceId", (n) -> { this.setDeviceId(n.getStringValue()); }); + deserializerMap.put("deviceManufacturerName", (n) -> { this.setDeviceManufacturerName(n.getStringValue()); }); + deserializerMap.put("deviceModelName", (n) -> { this.setDeviceModelName(n.getStringValue()); }); deserializerMap.put("deviceName", (n) -> { this.setDeviceName(n.getStringValue()); }); deserializerMap.put("estimatedRuntimeInMinutes", (n) -> { this.setEstimatedRuntimeInMinutes(n.getIntegerValue()); }); deserializerMap.put("fullBatteryDrainCount", (n) -> { this.setFullBatteryDrainCount(n.getIntegerValue()); }); @@ -166,6 +184,8 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeIntegerValue("deviceBatteryHealthScore", this.getDeviceBatteryHealthScore()); writer.writeCollectionOfPrimitiveValues("deviceBatteryTags", this.getDeviceBatteryTags()); writer.writeStringValue("deviceId", this.getDeviceId()); + writer.writeStringValue("deviceManufacturerName", this.getDeviceManufacturerName()); + writer.writeStringValue("deviceModelName", this.getDeviceModelName()); writer.writeStringValue("deviceName", this.getDeviceName()); writer.writeIntegerValue("estimatedRuntimeInMinutes", this.getEstimatedRuntimeInMinutes()); writer.writeIntegerValue("fullBatteryDrainCount", this.getFullBatteryDrainCount()); @@ -216,6 +236,20 @@ public void setDeviceBatteryTags(@jakarta.annotation.Nullable final java.util.Li public void setDeviceId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("deviceId", value); } + /** + * Sets the deviceManufacturerName property value. The manufacturer name of the device. + * @param value Value to set for the deviceManufacturerName property. + */ + public void setDeviceManufacturerName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("deviceManufacturerName", value); + } + /** + * Sets the deviceModelName property value. The model name of the device. + * @param value Value to set for the deviceModelName property. + */ + public void setDeviceModelName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("deviceModelName", value); + } /** * Sets the deviceName property value. Device friendly name. * @param value Value to set for the deviceName property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/UserExperienceAnalyticsBatteryHealthModelPerformance.java b/src/main/java/com/microsoft/graph/beta/generated/models/UserExperienceAnalyticsBatteryHealthModelPerformance.java index 05f4c2c651f..de73c5aa3ad 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/UserExperienceAnalyticsBatteryHealthModelPerformance.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/UserExperienceAnalyticsBatteryHealthModelPerformance.java @@ -59,6 +59,22 @@ public Integer getAverageEstimatedRuntimeInMinutes() { public Integer getAverageMaxCapacityPercentage() { return this.backingStore.get("averageMaxCapacityPercentage"); } + /** + * Gets the deviceManufacturerName property value. The manufacturer name of the device. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDeviceManufacturerName() { + return this.backingStore.get("deviceManufacturerName"); + } + /** + * Gets the deviceModelName property value. The model name of the device. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDeviceModelName() { + return this.backingStore.get("deviceModelName"); + } /** * The deserialization information for the current model * @return a {@link Map>} @@ -70,6 +86,8 @@ public Map> getFieldDeserializers deserializerMap.put("averageBatteryAgeInDays", (n) -> { this.setAverageBatteryAgeInDays(n.getIntegerValue()); }); deserializerMap.put("averageEstimatedRuntimeInMinutes", (n) -> { this.setAverageEstimatedRuntimeInMinutes(n.getIntegerValue()); }); deserializerMap.put("averageMaxCapacityPercentage", (n) -> { this.setAverageMaxCapacityPercentage(n.getIntegerValue()); }); + deserializerMap.put("deviceManufacturerName", (n) -> { this.setDeviceManufacturerName(n.getStringValue()); }); + deserializerMap.put("deviceModelName", (n) -> { this.setDeviceModelName(n.getStringValue()); }); deserializerMap.put("manufacturer", (n) -> { this.setManufacturer(n.getStringValue()); }); deserializerMap.put("meanFullBatteryDrainCount", (n) -> { this.setMeanFullBatteryDrainCount(n.getIntegerValue()); }); deserializerMap.put("medianEstimatedRuntimeInMinutes", (n) -> { this.setMedianEstimatedRuntimeInMinutes(n.getIntegerValue()); }); @@ -155,6 +173,8 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeIntegerValue("averageBatteryAgeInDays", this.getAverageBatteryAgeInDays()); writer.writeIntegerValue("averageEstimatedRuntimeInMinutes", this.getAverageEstimatedRuntimeInMinutes()); writer.writeIntegerValue("averageMaxCapacityPercentage", this.getAverageMaxCapacityPercentage()); + writer.writeStringValue("deviceManufacturerName", this.getDeviceManufacturerName()); + writer.writeStringValue("deviceModelName", this.getDeviceModelName()); writer.writeStringValue("manufacturer", this.getManufacturer()); writer.writeIntegerValue("meanFullBatteryDrainCount", this.getMeanFullBatteryDrainCount()); writer.writeIntegerValue("medianEstimatedRuntimeInMinutes", this.getMedianEstimatedRuntimeInMinutes()); @@ -192,6 +212,20 @@ public void setAverageEstimatedRuntimeInMinutes(@jakarta.annotation.Nullable fin public void setAverageMaxCapacityPercentage(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("averageMaxCapacityPercentage", value); } + /** + * Sets the deviceManufacturerName property value. The manufacturer name of the device. + * @param value Value to set for the deviceManufacturerName property. + */ + public void setDeviceManufacturerName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("deviceManufacturerName", value); + } + /** + * Sets the deviceModelName property value. The model name of the device. + * @param value Value to set for the deviceModelName property. + */ + public void setDeviceModelName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("deviceModelName", value); + } /** * Sets the manufacturer property value. Name of the device manufacturer. Deprecated in favor of DeviceManufacturerName. * @param value Value to set for the manufacturer property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/UserInsightsSettings.java b/src/main/java/com/microsoft/graph/beta/generated/models/UserInsightsSettings.java index b397aad70f5..3a4647cea7a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/UserInsightsSettings.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/UserInsightsSettings.java @@ -35,7 +35,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the isEnabled property value. true if user's itemInsights and meeting hours insights are enabled; false if user's itemInsights and meeting hours insights are disabled. Default is true. Optional. + * Gets the isEnabled property value. True if the user's itemInsights and meeting hours insights are enabled; false if the user's itemInsights and meeting hours insights are disabled. The default value is true. Optional. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -52,7 +52,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("isEnabled", this.getIsEnabled()); } /** - * Sets the isEnabled property value. true if user's itemInsights and meeting hours insights are enabled; false if user's itemInsights and meeting hours insights are disabled. Default is true. Optional. + * Sets the isEnabled property value. True if the user's itemInsights and meeting hours insights are enabled; false if the user's itemInsights and meeting hours insights are disabled. The default value is true. Optional. * @param value Value to set for the isEnabled property. */ public void setIsEnabled(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/UserSimulationEventInfo.java b/src/main/java/com/microsoft/graph/beta/generated/models/UserSimulationEventInfo.java index 01965ac9a24..fa255546ef9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/UserSimulationEventInfo.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/UserSimulationEventInfo.java @@ -64,6 +64,14 @@ public BackingStore getBackingStore() { public String getBrowser() { return this.backingStore.get("browser"); } + /** + * Gets the clickSource property value. The clickSource property + * @return a {@link ClickSource} + */ + @jakarta.annotation.Nullable + public ClickSource getClickSource() { + return this.backingStore.get("clickSource"); + } /** * Gets the eventDateTime property value. Date and time of the simulation event by a user in an attack simulation and training campaign. * @return a {@link OffsetDateTime} @@ -86,8 +94,9 @@ public String getEventName() { */ @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); + final HashMap> deserializerMap = new HashMap>(7); deserializerMap.put("browser", (n) -> { this.setBrowser(n.getStringValue()); }); + deserializerMap.put("clickSource", (n) -> { this.setClickSource(n.getEnumValue(ClickSource::forValue)); }); deserializerMap.put("eventDateTime", (n) -> { this.setEventDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("eventName", (n) -> { this.setEventName(n.getStringValue()); }); deserializerMap.put("ipAddress", (n) -> { this.setIpAddress(n.getStringValue()); }); @@ -126,6 +135,7 @@ public String getOsPlatformDeviceDetails() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); writer.writeStringValue("browser", this.getBrowser()); + writer.writeEnumValue("clickSource", this.getClickSource()); writer.writeOffsetDateTimeValue("eventDateTime", this.getEventDateTime()); writer.writeStringValue("eventName", this.getEventName()); writer.writeStringValue("ipAddress", this.getIpAddress()); @@ -155,6 +165,13 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value public void setBrowser(@jakarta.annotation.Nullable final String value) { this.backingStore.set("browser", value); } + /** + * Sets the clickSource property value. The clickSource property + * @param value Value to set for the clickSource property. + */ + public void setClickSource(@jakarta.annotation.Nullable final ClickSource value) { + this.backingStore.set("clickSource", value); + } /** * Sets the eventDateTime property value. Date and time of the simulation event by a user in an attack simulation and training campaign. * @param value Value to set for the eventDateTime property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/UserSolutionRoot.java b/src/main/java/com/microsoft/graph/beta/generated/models/UserSolutionRoot.java new file mode 100644 index 00000000000..38e178a8f2a --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/UserSolutionRoot.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.beta.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 UserSolutionRoot extends Entity implements Parsable { + /** + * Instantiates a new {@link UserSolutionRoot} and sets the default values. + */ + public UserSolutionRoot() { + 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 UserSolutionRoot} + */ + @jakarta.annotation.Nonnull + public static UserSolutionRoot createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new UserSolutionRoot(); + } + /** + * 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("workingTimeSchedule", (n) -> { this.setWorkingTimeSchedule(n.getObjectValue(WorkingTimeSchedule::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the workingTimeSchedule property value. The workingTimeSchedule property + * @return a {@link WorkingTimeSchedule} + */ + @jakarta.annotation.Nullable + public WorkingTimeSchedule getWorkingTimeSchedule() { + return this.backingStore.get("workingTimeSchedule"); + } + /** + * Serializes information the 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("workingTimeSchedule", this.getWorkingTimeSchedule()); + } + /** + * Sets the workingTimeSchedule property value. The workingTimeSchedule property + * @param value Value to set for the workingTimeSchedule property. + */ + public void setWorkingTimeSchedule(@jakarta.annotation.Nullable final WorkingTimeSchedule value) { + this.backingStore.set("workingTimeSchedule", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/UserTeamwork.java b/src/main/java/com/microsoft/graph/beta/generated/models/UserTeamwork.java index 51088561824..7de43b2abf0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/UserTeamwork.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/UserTeamwork.java @@ -54,7 +54,7 @@ public java.util.List getInstalledApps() { return this.backingStore.get("installedApps"); } /** - * Gets the locale property value. The chosen locale of a user in Microsoft Teams. + * Gets the locale property value. Represents the location that a user selected in Microsoft Teams and doesn't follow the Office's locale setting. A users locale is represented by their preferred language and country or region. For example, en-us. The language component follows two-letter codes as defined in ISO 639-1, and the country component follows two-letter codes as defined in ISO 3166-1 alpha-2. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public String getLocale() { return this.backingStore.get("locale"); } /** - * Gets the region property value. The region of the user in Microsoft Teams. + * Gets the region property value. Represents the region of the organization or the user. For users with multigeo licenses, the property contains the user's region (if available). For users without multigeo licenses, the property contains the organization's region.The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -96,14 +96,14 @@ public void setInstalledApps(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers deserializerMap.put("provisioningPolicies", (n) -> { this.setProvisioningPolicies(n.getCollectionOfObjectValues(CloudPcProvisioningPolicy::createFromDiscriminatorValue)); }); deserializerMap.put("reports", (n) -> { this.setReports(n.getObjectValue(CloudPcReports::createFromDiscriminatorValue)); }); deserializerMap.put("servicePlans", (n) -> { this.setServicePlans(n.getCollectionOfObjectValues(CloudPcServicePlan::createFromDiscriminatorValue)); }); - deserializerMap.put("sharedUseServicePlans", (n) -> { this.setSharedUseServicePlans(n.getCollectionOfObjectValues(CloudPcSharedUseServicePlan::createFromDiscriminatorValue)); }); deserializerMap.put("snapshots", (n) -> { this.setSnapshots(n.getCollectionOfObjectValues(CloudPcSnapshot::createFromDiscriminatorValue)); }); deserializerMap.put("supportedRegions", (n) -> { this.setSupportedRegions(n.getCollectionOfObjectValues(CloudPcSupportedRegion::createFromDiscriminatorValue)); }); deserializerMap.put("userSettings", (n) -> { this.setUserSettings(n.getCollectionOfObjectValues(CloudPcUserSetting::createFromDiscriminatorValue)); }); @@ -154,14 +153,6 @@ public CloudPcReports getReports() { public java.util.List getServicePlans() { return this.backingStore.get("servicePlans"); } - /** - * Gets the sharedUseServicePlans property value. Cloud PC shared-use service plans. The sharedUseServicePlans relationship is deprecated and stopped returning data on October 8, 2023. Going forward, use the frontLineServicePlans relationship. - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getSharedUseServicePlans() { - return this.backingStore.get("sharedUseServicePlans"); - } /** * Gets the snapshots property value. Cloud PC snapshots. * @return a {@link java.util.List} @@ -206,7 +197,6 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("provisioningPolicies", this.getProvisioningPolicies()); writer.writeObjectValue("reports", this.getReports()); writer.writeCollectionOfObjectValues("servicePlans", this.getServicePlans()); - writer.writeCollectionOfObjectValues("sharedUseServicePlans", this.getSharedUseServicePlans()); writer.writeCollectionOfObjectValues("snapshots", this.getSnapshots()); writer.writeCollectionOfObjectValues("supportedRegions", this.getSupportedRegions()); writer.writeCollectionOfObjectValues("userSettings", this.getUserSettings()); @@ -302,13 +292,6 @@ public void setReports(@jakarta.annotation.Nullable final CloudPcReports value) public void setServicePlans(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("servicePlans", value); } - /** - * Sets the sharedUseServicePlans property value. Cloud PC shared-use service plans. The sharedUseServicePlans relationship is deprecated and stopped returning data on October 8, 2023. Going forward, use the frontLineServicePlans relationship. - * @param value Value to set for the sharedUseServicePlans property. - */ - public void setSharedUseServicePlans(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("sharedUseServicePlans", value); - } /** * Sets the snapshots property value. Cloud PC snapshots. * @param value Value to set for the snapshots property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEvent.java b/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEvent.java index d8e16c70000..2d5effcb703 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEvent.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEvent.java @@ -77,6 +77,7 @@ public Map> getFieldDeserializers deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); }); deserializerMap.put("presenters", (n) -> { this.setPresenters(n.getCollectionOfObjectValues(VirtualEventPresenter::createFromDiscriminatorValue)); }); deserializerMap.put("sessions", (n) -> { this.setSessions(n.getCollectionOfObjectValues(VirtualEventSession::createFromDiscriminatorValue)); }); + deserializerMap.put("settings", (n) -> { this.setSettings(n.getObjectValue(VirtualEventSettings::createFromDiscriminatorValue)); }); deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(VirtualEventStatus::forValue)); }); return deserializerMap; @@ -97,6 +98,14 @@ public java.util.List getPresenters() { public java.util.List getSessions() { return this.backingStore.get("sessions"); } + /** + * Gets the settings property value. The virtual event settings. + * @return a {@link VirtualEventSettings} + */ + @jakarta.annotation.Nullable + public VirtualEventSettings getSettings() { + return this.backingStore.get("settings"); + } /** * Gets the startDateTime property value. Start time of the virtual event. The timeZone property can be set to any of the time zones currently supported by Windows. For details on how to get all available time zones using PowerShell, see Get-TimeZone. * @return a {@link DateTimeTimeZone} @@ -126,6 +135,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("endDateTime", this.getEndDateTime()); writer.writeCollectionOfObjectValues("presenters", this.getPresenters()); writer.writeCollectionOfObjectValues("sessions", this.getSessions()); + writer.writeObjectValue("settings", this.getSettings()); writer.writeObjectValue("startDateTime", this.getStartDateTime()); writer.writeEnumValue("status", this.getStatus()); } @@ -171,6 +181,13 @@ public void setPresenters(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("sessions", value); } + /** + * Sets the settings property value. The virtual event settings. + * @param value Value to set for the settings property. + */ + public void setSettings(@jakarta.annotation.Nullable final VirtualEventSettings value) { + this.backingStore.set("settings", value); + } /** * Sets the startDateTime property value. Start time of the virtual event. The timeZone property can be set to any of the time zones currently supported by Windows. For details on how to get all available time zones using PowerShell, see Get-TimeZone. * @param value Value to set for the startDateTime property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEventRegistrationQuestionBaseCollectionResponse.java b/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEventRegistrationQuestionBaseCollectionResponse.java new file mode 100644 index 00000000000..3fb9a2932be --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEventRegistrationQuestionBaseCollectionResponse.java @@ -0,0 +1,61 @@ +package com.microsoft.graph.beta.models; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventRegistrationQuestionBaseCollectionResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link VirtualEventRegistrationQuestionBaseCollectionResponse} and sets the default values. + */ + public VirtualEventRegistrationQuestionBaseCollectionResponse() { + super(); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link VirtualEventRegistrationQuestionBaseCollectionResponse} + */ + @jakarta.annotation.Nonnull + public static VirtualEventRegistrationQuestionBaseCollectionResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventRegistrationQuestionBaseCollectionResponse(); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("value", (n) -> { this.setValue(n.getCollectionOfObjectValues(VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the value property value. The value property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getValue() { + return this.backingStore.get("value"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeCollectionOfObjectValues("value", this.getValue()); + } + /** + * Sets the value property value. The value property + * @param value Value to set for the value property. + */ + public void setValue(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("value", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEventSettings.java b/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEventSettings.java new file mode 100644 index 00000000000..e4015ea1c57 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/VirtualEventSettings.java @@ -0,0 +1,124 @@ +package com.microsoft.graph.beta.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 VirtualEventSettings implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link VirtualEventSettings} and sets the default values. + */ + public VirtualEventSettings() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link VirtualEventSettings} + */ + @jakarta.annotation.Nonnull + public static VirtualEventSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new VirtualEventSettings(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("isAttendeeEmailNotificationEnabled", (n) -> { this.setIsAttendeeEmailNotificationEnabled(n.getBooleanValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the isAttendeeEmailNotificationEnabled property value. Indicates whether virtual event attendees receive email notifications. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getIsAttendeeEmailNotificationEnabled() { + return this.backingStore.get("isAttendeeEmailNotificationEnabled"); + } + /** + * 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.writeBooleanValue("isAttendeeEmailNotificationEnabled", this.getIsAttendeeEmailNotificationEnabled()); + 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 isAttendeeEmailNotificationEnabled property value. Indicates whether virtual event attendees receive email notifications. + * @param value Value to set for the isAttendeeEmailNotificationEnabled property. + */ + public void setIsAttendeeEmailNotificationEnabled(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("isAttendeeEmailNotificationEnabled", 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/beta/generated/models/WebauthnAuthenticationExtensionsClientInputs.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnAuthenticationExtensionsClientInputs.java new file mode 100644 index 00000000000..64272962279 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnAuthenticationExtensionsClientInputs.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.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 WebauthnAuthenticationExtensionsClientInputs implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnAuthenticationExtensionsClientInputs} and sets the default values. + */ + public WebauthnAuthenticationExtensionsClientInputs() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnAuthenticationExtensionsClientInputs} + */ + @jakarta.annotation.Nonnull + public static WebauthnAuthenticationExtensionsClientInputs createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnAuthenticationExtensionsClientInputs(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The 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/beta/generated/models/WebauthnAuthenticationExtensionsClientOutputs.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnAuthenticationExtensionsClientOutputs.java new file mode 100644 index 00000000000..907f7869b82 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnAuthenticationExtensionsClientOutputs.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.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 WebauthnAuthenticationExtensionsClientOutputs implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnAuthenticationExtensionsClientOutputs} and sets the default values. + */ + public WebauthnAuthenticationExtensionsClientOutputs() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnAuthenticationExtensionsClientOutputs} + */ + @jakarta.annotation.Nonnull + public static WebauthnAuthenticationExtensionsClientOutputs createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnAuthenticationExtensionsClientOutputs(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The 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/beta/generated/models/WebauthnAuthenticatorAttestationResponse.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnAuthenticatorAttestationResponse.java new file mode 100644 index 00000000000..ccdff4200d8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnAuthenticatorAttestationResponse.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.beta.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 WebauthnAuthenticatorAttestationResponse implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnAuthenticatorAttestationResponse} and sets the default values. + */ + public WebauthnAuthenticatorAttestationResponse() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnAuthenticatorAttestationResponse} + */ + @jakarta.annotation.Nonnull + public static WebauthnAuthenticatorAttestationResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnAuthenticatorAttestationResponse(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the attestationObject property value. Base64URL encoded, cryptographically protected attestation about the WebAuthn Authenticator. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAttestationObject() { + return this.backingStore.get("attestationObject"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the clientDataJSON property value. The clientDataJSON property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getClientDataJSON() { + return this.backingStore.get("clientDataJSON"); + } + /** + * 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("attestationObject", (n) -> { this.setAttestationObject(n.getStringValue()); }); + deserializerMap.put("clientDataJSON", (n) -> { this.setClientDataJSON(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("attestationObject", this.getAttestationObject()); + writer.writeStringValue("clientDataJSON", this.getClientDataJSON()); + 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 attestationObject property value. Base64URL encoded, cryptographically protected attestation about the WebAuthn Authenticator. + * @param value Value to set for the attestationObject property. + */ + public void setAttestationObject(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("attestationObject", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the clientDataJSON property value. The clientDataJSON property + * @param value Value to set for the clientDataJSON property. + */ + public void setClientDataJSON(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("clientDataJSON", 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/beta/generated/models/WebauthnAuthenticatorSelectionCriteria.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnAuthenticatorSelectionCriteria.java new file mode 100644 index 00000000000..216b131569d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnAuthenticatorSelectionCriteria.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.beta.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 WebauthnAuthenticatorSelectionCriteria implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnAuthenticatorSelectionCriteria} and sets the default values. + */ + public WebauthnAuthenticatorSelectionCriteria() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnAuthenticatorSelectionCriteria} + */ + @jakarta.annotation.Nonnull + public static WebauthnAuthenticatorSelectionCriteria createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnAuthenticatorSelectionCriteria(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the authenticatorAttachment property value. Microsoft Entra ID-preferred attachment modality. For more information, see Authenticator Attachment Modality + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAuthenticatorAttachment() { + return this.backingStore.get("authenticatorAttachment"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("authenticatorAttachment", (n) -> { this.setAuthenticatorAttachment(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("requireResidentKey", (n) -> { this.setRequireResidentKey(n.getBooleanValue()); }); + deserializerMap.put("userVerification", (n) -> { this.setUserVerification(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"); + } + /** + * Gets the requireResidentKey property value. Microsoft Entra ID-preferred client-side credential discoverability. Currently always true. The WebAuthn authenticator must store the credential identifier on the authenticator. + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getRequireResidentKey() { + return this.backingStore.get("requireResidentKey"); + } + /** + * Gets the userVerification property value. Microsoft Entra ID requirement to verify the user is present during credential provisioning. Currently always required. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUserVerification() { + return this.backingStore.get("userVerification"); + } + /** + * Serializes information the current 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("authenticatorAttachment", this.getAuthenticatorAttachment()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeBooleanValue("requireResidentKey", this.getRequireResidentKey()); + writer.writeStringValue("userVerification", this.getUserVerification()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the authenticatorAttachment property value. Microsoft Entra ID-preferred attachment modality. For more information, see Authenticator Attachment Modality + * @param value Value to set for the authenticatorAttachment property. + */ + public void setAuthenticatorAttachment(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("authenticatorAttachment", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value 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 requireResidentKey property value. Microsoft Entra ID-preferred client-side credential discoverability. Currently always true. The WebAuthn authenticator must store the credential identifier on the authenticator. + * @param value Value to set for the requireResidentKey property. + */ + public void setRequireResidentKey(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("requireResidentKey", value); + } + /** + * Sets the userVerification property value. Microsoft Entra ID requirement to verify the user is present during credential provisioning. Currently always required. + * @param value Value to set for the userVerification property. + */ + public void setUserVerification(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("userVerification", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnCredentialCreationOptions.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnCredentialCreationOptions.java new file mode 100644 index 00000000000..58bf87c69ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnCredentialCreationOptions.java @@ -0,0 +1,142 @@ +package com.microsoft.graph.beta.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.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WebauthnCredentialCreationOptions implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnCredentialCreationOptions} and sets the default values. + */ + public WebauthnCredentialCreationOptions() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnCredentialCreationOptions} + */ + @jakarta.annotation.Nonnull + public static WebauthnCredentialCreationOptions createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnCredentialCreationOptions(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the challengeTimeoutDateTime property value. Defines when the challenge in the creation options is no longer valid. Expired challenges are rejected when you attempt to create a new fido2AuthenticationMethod. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getChallengeTimeoutDateTime() { + return this.backingStore.get("challengeTimeoutDateTime"); + } + /** + * 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("challengeTimeoutDateTime", (n) -> { this.setChallengeTimeoutDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("publicKey", (n) -> { this.setPublicKey(n.getObjectValue(WebauthnPublicKeyCredentialCreationOptions::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 publicKey property value. Defines public key options for the creation of a new WebAuthn public key credential. + * @return a {@link WebauthnPublicKeyCredentialCreationOptions} + */ + @jakarta.annotation.Nullable + public WebauthnPublicKeyCredentialCreationOptions getPublicKey() { + return this.backingStore.get("publicKey"); + } + /** + * Serializes information the current 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("challengeTimeoutDateTime", this.getChallengeTimeoutDateTime()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeObjectValue("publicKey", this.getPublicKey()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the challengeTimeoutDateTime property value. Defines when the challenge in the creation options is no longer valid. Expired challenges are rejected when you attempt to create a new fido2AuthenticationMethod. + * @param value Value to set for the challengeTimeoutDateTime property. + */ + public void setChallengeTimeoutDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("challengeTimeoutDateTime", 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 publicKey property value. Defines public key options for the creation of a new WebAuthn public key credential. + * @param value Value to set for the publicKey property. + */ + public void setPublicKey(@jakarta.annotation.Nullable final WebauthnPublicKeyCredentialCreationOptions value) { + this.backingStore.set("publicKey", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredential.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredential.java new file mode 100644 index 00000000000..16d1d04dadb --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredential.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.beta.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 WebauthnPublicKeyCredential implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnPublicKeyCredential} and sets the default values. + */ + public WebauthnPublicKeyCredential() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnPublicKeyCredential} + */ + @jakarta.annotation.Nonnull + public static WebauthnPublicKeyCredential createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnPublicKeyCredential(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the clientExtensionResults property value. The untyped results from the execution of extensions requested by the client when creating a new public key credential. + * @return a {@link WebauthnAuthenticationExtensionsClientOutputs} + */ + @jakarta.annotation.Nullable + public WebauthnAuthenticationExtensionsClientOutputs getClientExtensionResults() { + return this.backingStore.get("clientExtensionResults"); + } + /** + * 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("clientExtensionResults", (n) -> { this.setClientExtensionResults(n.getObjectValue(WebauthnAuthenticationExtensionsClientOutputs::createFromDiscriminatorValue)); }); + deserializerMap.put("id", (n) -> { this.setId(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("response", (n) -> { this.setResponse(n.getObjectValue(WebauthnAuthenticatorAttestationResponse::createFromDiscriminatorValue)); }); + return deserializerMap; + } + /** + * Gets the id property value. The credential ID created by the WebAuthn Authenticator. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getId() { + return this.backingStore.get("id"); + } + /** + * 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 response property value. Response data returned from a WebAuthn authenticator after it creates a new public key credential. + * @return a {@link WebauthnAuthenticatorAttestationResponse} + */ + @jakarta.annotation.Nullable + public WebauthnAuthenticatorAttestationResponse getResponse() { + return this.backingStore.get("response"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + writer.writeObjectValue("clientExtensionResults", this.getClientExtensionResults()); + writer.writeStringValue("id", this.getId()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeObjectValue("response", this.getResponse()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the clientExtensionResults property value. The untyped results from the execution of extensions requested by the client when creating a new public key credential. + * @param value Value to set for the clientExtensionResults property. + */ + public void setClientExtensionResults(@jakarta.annotation.Nullable final WebauthnAuthenticationExtensionsClientOutputs value) { + this.backingStore.set("clientExtensionResults", value); + } + /** + * Sets the id property value. The credential ID created by the WebAuthn Authenticator. + * @param value Value to set for the id property. + */ + public void setId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("id", 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 response property value. Response data returned from a WebAuthn authenticator after it creates a new public key credential. + * @param value Value to set for the response property. + */ + public void setResponse(@jakarta.annotation.Nullable final WebauthnAuthenticatorAttestationResponse value) { + this.backingStore.set("response", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialCreationOptions.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialCreationOptions.java new file mode 100644 index 00000000000..d266161a006 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialCreationOptions.java @@ -0,0 +1,260 @@ +package com.microsoft.graph.beta.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 WebauthnPublicKeyCredentialCreationOptions implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnPublicKeyCredentialCreationOptions} and sets the default values. + */ + public WebauthnPublicKeyCredentialCreationOptions() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnPublicKeyCredentialCreationOptions} + */ + @jakarta.annotation.Nonnull + public static WebauthnPublicKeyCredentialCreationOptions createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnPublicKeyCredentialCreationOptions(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the attestation property value. Attestation preference for the Microsoft Entra ID relying party. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getAttestation() { + return this.backingStore.get("attestation"); + } + /** + * Gets the authenticatorSelection property value. Properties of WebAuthn authenticators allowed to be used for authentication in Microsoft Entra ID. + * @return a {@link WebauthnAuthenticatorSelectionCriteria} + */ + @jakarta.annotation.Nullable + public WebauthnAuthenticatorSelectionCriteria getAuthenticatorSelection() { + return this.backingStore.get("authenticatorSelection"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the challenge property value. A challenge generated by Microsoft Entra ID and sent back with the registration request to prevent replay attacks. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getChallenge() { + return this.backingStore.get("challenge"); + } + /** + * Gets the excludeCredentials property value. List of credentials blocked for creations in Microsoft Entra ID. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getExcludeCredentials() { + return this.backingStore.get("excludeCredentials"); + } + /** + * Gets the extensions property value. Additional processing required by Microsoft Entra ID for the client and WebAuthn authenticator. For example, Microsoft Entra ID might require that particular information be returned in the attestation object. + * @return a {@link WebauthnAuthenticationExtensionsClientInputs} + */ + @jakarta.annotation.Nullable + public WebauthnAuthenticationExtensionsClientInputs getExtensions() { + return this.backingStore.get("extensions"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(10); + deserializerMap.put("attestation", (n) -> { this.setAttestation(n.getStringValue()); }); + deserializerMap.put("authenticatorSelection", (n) -> { this.setAuthenticatorSelection(n.getObjectValue(WebauthnAuthenticatorSelectionCriteria::createFromDiscriminatorValue)); }); + deserializerMap.put("challenge", (n) -> { this.setChallenge(n.getStringValue()); }); + deserializerMap.put("excludeCredentials", (n) -> { this.setExcludeCredentials(n.getCollectionOfObjectValues(WebauthnPublicKeyCredentialDescriptor::createFromDiscriminatorValue)); }); + deserializerMap.put("extensions", (n) -> { this.setExtensions(n.getObjectValue(WebauthnAuthenticationExtensionsClientInputs::createFromDiscriminatorValue)); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("pubKeyCredParams", (n) -> { this.setPubKeyCredParams(n.getCollectionOfObjectValues(WebauthnPublicKeyCredentialParameters::createFromDiscriminatorValue)); }); + deserializerMap.put("rp", (n) -> { this.setRp(n.getObjectValue(WebauthnPublicKeyCredentialRpEntity::createFromDiscriminatorValue)); }); + deserializerMap.put("timeout", (n) -> { this.setTimeout(n.getIntegerValue()); }); + deserializerMap.put("user", (n) -> { this.setUser(n.getObjectValue(WebauthnPublicKeyCredentialUserEntity::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 pubKeyCredParams property value. A set of preferred credential properties for the creation of a new public key credential in Microsoft Entra ID. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getPubKeyCredParams() { + return this.backingStore.get("pubKeyCredParams"); + } + /** + * Gets the rp property value. Information about the relying party (Microsoft Entra ID) responsible for the request. + * @return a {@link WebauthnPublicKeyCredentialRpEntity} + */ + @jakarta.annotation.Nullable + public WebauthnPublicKeyCredentialRpEntity getRp() { + return this.backingStore.get("rp"); + } + /** + * Gets the timeout property value. The time in milliseconds that the client is willing to wait for the credential creation operation to complete. + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getTimeout() { + return this.backingStore.get("timeout"); + } + /** + * Gets the user property value. Information about the user account for which the credential is generated. + * @return a {@link WebauthnPublicKeyCredentialUserEntity} + */ + @jakarta.annotation.Nullable + public WebauthnPublicKeyCredentialUserEntity getUser() { + return this.backingStore.get("user"); + } + /** + * Serializes information the current 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("attestation", this.getAttestation()); + writer.writeObjectValue("authenticatorSelection", this.getAuthenticatorSelection()); + writer.writeStringValue("challenge", this.getChallenge()); + writer.writeCollectionOfObjectValues("excludeCredentials", this.getExcludeCredentials()); + writer.writeObjectValue("extensions", this.getExtensions()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeCollectionOfObjectValues("pubKeyCredParams", this.getPubKeyCredParams()); + writer.writeObjectValue("rp", this.getRp()); + writer.writeIntegerValue("timeout", this.getTimeout()); + writer.writeObjectValue("user", this.getUser()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the attestation property value. Attestation preference for the Microsoft Entra ID relying party. + * @param value Value to set for the attestation property. + */ + public void setAttestation(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("attestation", value); + } + /** + * Sets the authenticatorSelection property value. Properties of WebAuthn authenticators allowed to be used for authentication in Microsoft Entra ID. + * @param value Value to set for the authenticatorSelection property. + */ + public void setAuthenticatorSelection(@jakarta.annotation.Nullable final WebauthnAuthenticatorSelectionCriteria value) { + this.backingStore.set("authenticatorSelection", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the challenge property value. A challenge generated by Microsoft Entra ID and sent back with the registration request to prevent replay attacks. + * @param value Value to set for the challenge property. + */ + public void setChallenge(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("challenge", value); + } + /** + * Sets the excludeCredentials property value. List of credentials blocked for creations in Microsoft Entra ID. + * @param value Value to set for the excludeCredentials property. + */ + public void setExcludeCredentials(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("excludeCredentials", value); + } + /** + * Sets the extensions property value. Additional processing required by Microsoft Entra ID for the client and WebAuthn authenticator. For example, Microsoft Entra ID might require that particular information be returned in the attestation object. + * @param value Value to set for the extensions property. + */ + public void setExtensions(@jakarta.annotation.Nullable final WebauthnAuthenticationExtensionsClientInputs value) { + this.backingStore.set("extensions", 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 pubKeyCredParams property value. A set of preferred credential properties for the creation of a new public key credential in Microsoft Entra ID. + * @param value Value to set for the pubKeyCredParams property. + */ + public void setPubKeyCredParams(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("pubKeyCredParams", value); + } + /** + * Sets the rp property value. Information about the relying party (Microsoft Entra ID) responsible for the request. + * @param value Value to set for the rp property. + */ + public void setRp(@jakarta.annotation.Nullable final WebauthnPublicKeyCredentialRpEntity value) { + this.backingStore.set("rp", value); + } + /** + * Sets the timeout property value. The time in milliseconds that the client is willing to wait for the credential creation operation to complete. + * @param value Value to set for the timeout property. + */ + public void setTimeout(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("timeout", value); + } + /** + * Sets the user property value. Information about the user account for which the credential is generated. + * @param value Value to set for the user property. + */ + public void setUser(@jakarta.annotation.Nullable final WebauthnPublicKeyCredentialUserEntity value) { + this.backingStore.set("user", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialDescriptor.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialDescriptor.java new file mode 100644 index 00000000000..57595570b89 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialDescriptor.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.beta.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 WebauthnPublicKeyCredentialDescriptor implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnPublicKeyCredentialDescriptor} and sets the default values. + */ + public WebauthnPublicKeyCredentialDescriptor() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnPublicKeyCredentialDescriptor} + */ + @jakarta.annotation.Nonnull + public static WebauthnPublicKeyCredentialDescriptor createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnPublicKeyCredentialDescriptor(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("id", (n) -> { this.setId(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("transports", (n) -> { this.setTransports(n.getCollectionOfPrimitiveValues(String.class)); }); + deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the id property value. The unique identifier of the credential. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getId() { + return this.backingStore.get("id"); + } + /** + * 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 transports property value. The transport method used by the WebAuthn authenticator to communicate with the client. For example, usb, nfc, ble. + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getTransports() { + return this.backingStore.get("transports"); + } + /** + * Gets the type property value. Type of public key credential. The only supported value is public-key. + * @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("id", this.getId()); + writer.writeStringValue("@odata.type", this.getOdataType()); + writer.writeCollectionOfPrimitiveValues("transports", this.getTransports()); + 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 id property value. The unique identifier of the credential. + * @param value Value to set for the id property. + */ + public void setId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("id", 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 transports property value. The transport method used by the WebAuthn authenticator to communicate with the client. For example, usb, nfc, ble. + * @param value Value to set for the transports property. + */ + public void setTransports(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("transports", value); + } + /** + * Sets the type property value. Type of public key credential. The only supported value is public-key. + * @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/beta/generated/models/WebauthnPublicKeyCredentialParameters.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialParameters.java new file mode 100644 index 00000000000..5406a115781 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialParameters.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.beta.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 WebauthnPublicKeyCredentialParameters implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnPublicKeyCredentialParameters} and sets the default values. + */ + public WebauthnPublicKeyCredentialParameters() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnPublicKeyCredentialParameters} + */ + @jakarta.annotation.Nonnull + public static WebauthnPublicKeyCredentialParameters createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnPublicKeyCredentialParameters(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the alg property value. Specifies the cryptographic signature algorithm used for the new credential. The algorithm identifiers should be values registered in the IANA COSE algorithms registry. For more information, see IANA-COSE-ALGS-REG. + * @return a {@link Integer} + */ + @jakarta.annotation.Nullable + public Integer getAlg() { + return this.backingStore.get("alg"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("alg", (n) -> { this.setAlg(n.getIntegerValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + deserializerMap.put("type", (n) -> { this.setType(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"); + } + /** + * Gets the type property value. Specifies the type of credential to be created. The only supported value is public-key. + * @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.writeIntegerValue("alg", this.getAlg()); + writer.writeStringValue("@odata.type", this.getOdataType()); + 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 alg property value. Specifies the cryptographic signature algorithm used for the new credential. The algorithm identifiers should be values registered in the IANA COSE algorithms registry. For more information, see IANA-COSE-ALGS-REG. + * @param value Value to set for the alg property. + */ + public void setAlg(@jakarta.annotation.Nullable final Integer value) { + this.backingStore.set("alg", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value 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 type property value. Specifies the type of credential to be created. The only supported value is public-key. + * @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/beta/generated/models/WebauthnPublicKeyCredentialRpEntity.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialRpEntity.java new file mode 100644 index 00000000000..7130b339bbb --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialRpEntity.java @@ -0,0 +1,141 @@ +package com.microsoft.graph.beta.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 WebauthnPublicKeyCredentialRpEntity implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnPublicKeyCredentialRpEntity} and sets the default values. + */ + public WebauthnPublicKeyCredentialRpEntity() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnPublicKeyCredentialRpEntity} + */ + @jakarta.annotation.Nonnull + public static WebauthnPublicKeyCredentialRpEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnPublicKeyCredentialRpEntity(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return 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("id", (n) -> { this.setId(n.getStringValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the id property value. A unique identifier for the relying party (Microsoft Entra ID) bound to the generated credential. For example, login.microsoft.com. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getId() { + return this.backingStore.get("id"); + } + /** + * Gets the name property value. Human-readable identifier of the relying party. This property is always set to Microsoft. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getName() { + return this.backingStore.get("name"); + } + /** + * 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("id", this.getId()); + writer.writeStringValue("name", this.getName()); + 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 id property value. A unique identifier for the relying party (Microsoft Entra ID) bound to the generated credential. For example, login.microsoft.com. + * @param value Value to set for the id property. + */ + public void setId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("id", value); + } + /** + * Sets the name property value. Human-readable identifier of the relying party. This property is always set to Microsoft. + * @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 @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/beta/generated/models/WebauthnPublicKeyCredentialUserEntity.java b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialUserEntity.java new file mode 100644 index 00000000000..f2b3ea8703d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WebauthnPublicKeyCredentialUserEntity.java @@ -0,0 +1,158 @@ +package com.microsoft.graph.beta.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 WebauthnPublicKeyCredentialUserEntity implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link WebauthnPublicKeyCredentialUserEntity} and sets the default values. + */ + public WebauthnPublicKeyCredentialUserEntity() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link WebauthnPublicKeyCredentialUserEntity} + */ + @jakarta.annotation.Nonnull + public static WebauthnPublicKeyCredentialUserEntity createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WebauthnPublicKeyCredentialUserEntity(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the displayName property value. The display name of the user account bound to the generated credential, as displayed in Microsoft Entra ID. + * @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>(4); + deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); + deserializerMap.put("id", (n) -> { this.setId(n.getStringValue()); }); + deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); + deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the id property value. The Microsoft Entra ID-assigned object ID of the user account bound to the generated credential. The ID is encoded to WebAuthn spec by Microsoft Entra ID and is not represented as a GUID. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getId() { + return this.backingStore.get("id"); + } + /** + * Gets the name property value. The user principal name (UPN) of the user account bound to the generated credential, as displayed in Microsoft Entra ID. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getName() { + return this.backingStore.get("name"); + } + /** + * 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("displayName", this.getDisplayName()); + writer.writeStringValue("id", this.getId()); + writer.writeStringValue("name", this.getName()); + 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 displayName property value. The display name of the user account bound to the generated credential, as displayed in Microsoft Entra ID. + * @param value Value to set for the displayName property. + */ + public void setDisplayName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("displayName", value); + } + /** + * Sets the id property value. The Microsoft Entra ID-assigned object ID of the user account bound to the generated credential. The ID is encoded to WebAuthn spec by Microsoft Entra ID and is not represented as a GUID. + * @param value Value to set for the id property. + */ + public void setId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("id", value); + } + /** + * Sets the name property value. The user principal name (UPN) of the user account bound to the generated credential, as displayed in Microsoft Entra ID. + * @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 @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/beta/generated/models/WindowsAppXAppAssignmentSettings.java b/src/main/java/com/microsoft/graph/beta/generated/models/WindowsAppXAppAssignmentSettings.java index 64dbc36d101..ee26fcc3eea 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WindowsAppXAppAssignmentSettings.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WindowsAppXAppAssignmentSettings.java @@ -39,7 +39,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. + * Gets the useDeviceContext property value. Whether or not to use device execution context for Windows AppX mobile app. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -56,7 +56,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("useDeviceContext", this.getUseDeviceContext()); } /** - * Sets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. + * Sets the useDeviceContext property value. Whether or not to use device execution context for Windows AppX mobile app. * @param value Value to set for the useDeviceContext property. */ public void setUseDeviceContext(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WindowsHelloForBusinessAuthenticationMethod.java b/src/main/java/com/microsoft/graph/beta/generated/models/WindowsHelloForBusinessAuthenticationMethod.java index 2a268f206d2..9bd46a27067 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WindowsHelloForBusinessAuthenticationMethod.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WindowsHelloForBusinessAuthenticationMethod.java @@ -3,7 +3,6 @@ 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; @@ -26,14 +25,6 @@ public static WindowsHelloForBusinessAuthenticationMethod createFromDiscriminato Objects.requireNonNull(parseNode); return new WindowsHelloForBusinessAuthenticationMethod(); } - /** - * Gets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered. - * @return a {@link OffsetDateTime} - */ - @jakarta.annotation.Nullable - public OffsetDateTime getCreatedDateTime() { - return this.backingStore.get("createdDateTime"); - } /** * Gets the device property value. The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. * @return a {@link Device} @@ -57,7 +48,6 @@ public String getDisplayName() { @jakarta.annotation.Nonnull public Map> getFieldDeserializers() { final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); - deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); }); deserializerMap.put("device", (n) -> { this.setDevice(n.getObjectValue(Device::createFromDiscriminatorValue)); }); deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); }); deserializerMap.put("keyStrength", (n) -> { this.setKeyStrength(n.getEnumValue(AuthenticationMethodKeyStrength::forValue)); }); @@ -78,18 +68,10 @@ public AuthenticationMethodKeyStrength getKeyStrength() { public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { Objects.requireNonNull(writer); super.serialize(writer); - writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime()); writer.writeObjectValue("device", this.getDevice()); writer.writeStringValue("displayName", this.getDisplayName()); writer.writeEnumValue("keyStrength", this.getKeyStrength()); } - /** - * Sets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered. - * @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 device property value. The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. * @param value Value to set for the device property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WindowsUniversalAppXAppAssignmentSettings.java b/src/main/java/com/microsoft/graph/beta/generated/models/WindowsUniversalAppXAppAssignmentSettings.java index 0872224ab0f..52d6a1a72bf 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WindowsUniversalAppXAppAssignmentSettings.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WindowsUniversalAppXAppAssignmentSettings.java @@ -39,7 +39,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. + * Gets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -56,7 +56,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("useDeviceContext", this.getUseDeviceContext()); } /** - * Sets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. + * Sets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. * @param value Value to set for the useDeviceContext property. */ public void setUseDeviceContext(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartAxisTitle.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartAxisTitle.java index 4d1f9eed2ab..cef6a251f8f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartAxisTitle.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartAxisTitle.java @@ -53,7 +53,7 @@ public String getText() { return this.backingStore.get("text"); } /** - * Gets the visible property value. A boolean that specifies the visibility of an axis title. + * Gets the visible property value. A Boolean that specifies the visibility of an axis title. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -86,7 +86,7 @@ public void setText(@jakarta.annotation.Nullable final String value) { this.backingStore.set("text", value); } /** - * Sets the visible property value. A boolean that specifies the visibility of an axis title. + * Sets the visible property value. A Boolean that specifies the visibility of an axis title. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartDataLabels.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartDataLabels.java index 5e3f9146c23..1cafc4cce1e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartDataLabels.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartDataLabels.java @@ -59,7 +59,7 @@ public String getPosition() { return this.backingStore.get("position"); } /** - * Gets the separator property value. String representing the separator used for the data labels on a chart. + * Gets the separator property value. String that represents the separator used for the data labels on a chart. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -67,7 +67,7 @@ public String getSeparator() { return this.backingStore.get("separator"); } /** - * Gets the showBubbleSize property value. Boolean value representing if the data label bubble size is visible or not. + * Gets the showBubbleSize property value. Boolean value that represents whether the data label bubble size is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -75,7 +75,7 @@ public Boolean getShowBubbleSize() { return this.backingStore.get("showBubbleSize"); } /** - * Gets the showCategoryName property value. Boolean value representing if the data label category name is visible or not. + * Gets the showCategoryName property value. Boolean value that represents whether the data label category name is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -83,7 +83,7 @@ public Boolean getShowCategoryName() { return this.backingStore.get("showCategoryName"); } /** - * Gets the showLegendKey property value. Boolean value representing if the data label legend key is visible or not. + * Gets the showLegendKey property value. Boolean value that represents whether the data label legend key is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -91,7 +91,7 @@ public Boolean getShowLegendKey() { return this.backingStore.get("showLegendKey"); } /** - * Gets the showPercentage property value. Boolean value representing if the data label percentage is visible or not. + * Gets the showPercentage property value. Boolean value that represents whether the data label percentage is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -99,7 +99,7 @@ public Boolean getShowPercentage() { return this.backingStore.get("showPercentage"); } /** - * Gets the showSeriesName property value. Boolean value representing if the data label series name is visible or not. + * Gets the showSeriesName property value. Boolean value that represents whether the data label series name is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -107,7 +107,7 @@ public Boolean getShowSeriesName() { return this.backingStore.get("showSeriesName"); } /** - * Gets the showValue property value. Boolean value representing if the data label value is visible or not. + * Gets the showValue property value. Boolean value that represents whether the data label value is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -146,49 +146,49 @@ public void setPosition(@jakarta.annotation.Nullable final String value) { this.backingStore.set("position", value); } /** - * Sets the separator property value. String representing the separator used for the data labels on a chart. + * Sets the separator property value. String that represents the separator used for the data labels on a chart. * @param value Value to set for the separator property. */ public void setSeparator(@jakarta.annotation.Nullable final String value) { this.backingStore.set("separator", value); } /** - * Sets the showBubbleSize property value. Boolean value representing if the data label bubble size is visible or not. + * Sets the showBubbleSize property value. Boolean value that represents whether the data label bubble size is visible. * @param value Value to set for the showBubbleSize property. */ public void setShowBubbleSize(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showBubbleSize", value); } /** - * Sets the showCategoryName property value. Boolean value representing if the data label category name is visible or not. + * Sets the showCategoryName property value. Boolean value that represents whether the data label category name is visible. * @param value Value to set for the showCategoryName property. */ public void setShowCategoryName(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showCategoryName", value); } /** - * Sets the showLegendKey property value. Boolean value representing if the data label legend key is visible or not. + * Sets the showLegendKey property value. Boolean value that represents whether the data label legend key is visible. * @param value Value to set for the showLegendKey property. */ public void setShowLegendKey(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showLegendKey", value); } /** - * Sets the showPercentage property value. Boolean value representing if the data label percentage is visible or not. + * Sets the showPercentage property value. Boolean value that represents whether the data label percentage is visible. * @param value Value to set for the showPercentage property. */ public void setShowPercentage(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showPercentage", value); } /** - * Sets the showSeriesName property value. Boolean value representing if the data label series name is visible or not. + * Sets the showSeriesName property value. Boolean value that represents whether the data label series name is visible. * @param value Value to set for the showSeriesName property. */ public void setShowSeriesName(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showSeriesName", value); } /** - * Sets the showValue property value. Boolean value representing if the data label value is visible or not. + * Sets the showValue property value. Boolean value that represents whether the data label value is visible. * @param value Value to set for the showValue property. */ public void setShowValue(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartFont.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartFont.java index 120d7c1c2d3..f61b7453cd1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartFont.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartFont.java @@ -25,7 +25,7 @@ public static WorkbookChartFont createFromDiscriminatorValue(@jakarta.annotation return new WorkbookChartFont(); } /** - * Gets the bold property value. Represents the bold status of font. + * Gets the bold property value. Indicates whether the fond is bold. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public Boolean getBold() { return this.backingStore.get("bold"); } /** - * Gets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. + * Gets the color property value. The HTML color code representation of the text color. For example #FF0000 represents Red. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -56,7 +56,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the italic property value. Represents the italic status of the font. + * Gets the italic property value. Indicates whether the fond is italic. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public Boolean getItalic() { return this.backingStore.get("italic"); } /** - * Gets the name property value. Font name (for example 'Calibri') + * Gets the name property value. The font name. For example 'Calibri'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the size property value. Size of the font (for example 11) + * Gets the size property value. The size of the font. For example, 11. * @return a {@link Double} */ @jakarta.annotation.Nullable @@ -80,7 +80,7 @@ public Double getSize() { return this.backingStore.get("size"); } /** - * Gets the underline property value. Type of underline applied to the font. The possible values are: None, Single. + * Gets the underline property value. The type of underlining applied to the font. The possible values are: None, Single. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -102,42 +102,42 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("underline", this.getUnderline()); } /** - * Sets the bold property value. Represents the bold status of font. + * Sets the bold property value. Indicates whether the fond is bold. * @param value Value to set for the bold property. */ public void setBold(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("bold", value); } /** - * Sets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. + * Sets the color property value. The HTML color code representation of the text color. For example #FF0000 represents Red. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { this.backingStore.set("color", value); } /** - * Sets the italic property value. Represents the italic status of the font. + * Sets the italic property value. Indicates whether the fond is italic. * @param value Value to set for the italic property. */ public void setItalic(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("italic", value); } /** - * Sets the name property value. Font name (for example 'Calibri') + * Sets the name property value. The font name. For example 'Calibri'. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the size property value. Size of the font (for example 11) + * Sets the size property value. The size of the font. For example, 11. * @param value Value to set for the size property. */ public void setSize(@jakarta.annotation.Nullable final Double value) { this.backingStore.set("size", value); } /** - * Sets the underline property value. Type of underline applied to the font. The possible values are: None, Single. + * Sets the underline property value. The type of underlining applied to the font. The possible values are: None, Single. * @param value Value to set for the underline property. */ public void setUnderline(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartGridlines.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartGridlines.java index 49ee46a194b..32c801d6dd9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartGridlines.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartGridlines.java @@ -44,7 +44,7 @@ public WorkbookChartGridlinesFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the visible property value. Boolean value representing if the axis gridlines are visible or not. + * Gets the visible property value. Indicates whether the axis gridlines are visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -69,7 +69,7 @@ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartGridlinesF this.backingStore.set("format", value); } /** - * Sets the visible property value. Boolean value representing if the axis gridlines are visible or not. + * Sets the visible property value. Indicates whether the axis gridlines are visible. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartLegend.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartLegend.java index 41c0cf3d97f..eedcbc8f182 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartLegend.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartLegend.java @@ -46,7 +46,7 @@ public WorkbookChartLegendFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the overlay property value. Boolean value for whether the chart legend should overlap with the main body of the chart. + * Gets the overlay property value. Indicates whether the chart legend should overlap with the main body of the chart. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public String getPosition() { return this.backingStore.get("position"); } /** - * Gets the visible property value. A boolean value the represents the visibility of a ChartLegend object. + * Gets the visible property value. Indicates whether the chart legend is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -89,7 +89,7 @@ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartLegendForm this.backingStore.set("format", value); } /** - * Sets the overlay property value. Boolean value for whether the chart legend should overlap with the main body of the chart. + * Sets the overlay property value. Indicates whether the chart legend should overlap with the main body of the chart. * @param value Value to set for the overlay property. */ public void setOverlay(@jakarta.annotation.Nullable final Boolean value) { @@ -103,7 +103,7 @@ public void setPosition(@jakarta.annotation.Nullable final String value) { this.backingStore.set("position", value); } /** - * Sets the visible property value. A boolean value the represents the visibility of a ChartLegend object. + * Sets the visible property value. Indicates whether the chart legend is visible. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartLineFormat.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartLineFormat.java index afa70fcea90..37b71c34530 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartLineFormat.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartLineFormat.java @@ -25,7 +25,7 @@ public static WorkbookChartLineFormat createFromDiscriminatorValue(@jakarta.anno return new WorkbookChartLineFormat(); } /** - * Gets the color property value. HTML color code representing the color of lines in the chart. + * Gets the color property value. The HTML color code that represents the color of lines in the chart. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -52,7 +52,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("color", this.getColor()); } /** - * Sets the color property value. HTML color code representing the color of lines in the chart. + * Sets the color property value. The HTML color code that represents the color of lines in the chart. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartPoint.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartPoint.java index d65410874c9..d15ed48d50a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartPoint.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartPoint.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the format property value. Encapsulates the format properties chart point. Read-only. + * Gets the format property value. The format properties of the chart point. Read-only. * @return a {@link WorkbookChartPointFormat} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public WorkbookChartPointFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the value property value. Returns the value of a chart point. Read-only. + * Gets the value property value. The value of a chart point. Read-only. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -63,14 +63,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("value", this.getValue()); } /** - * Sets the format property value. Encapsulates the format properties chart point. Read-only. + * Sets the format property value. The format properties of the chart point. Read-only. * @param value Value to set for the format property. */ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartPointFormat value) { this.backingStore.set("format", value); } /** - * Sets the value property value. Returns the value of a chart point. Read-only. + * Sets the value property value. The value of a chart point. Read-only. * @param value Value to set for the value property. */ public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartSeries.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartSeries.java index 4cd67604b00..eba33f467b5 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartSeries.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartSeries.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the format property value. Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * Gets the format property value. The formatting of a chart series, which includes fill and line formatting. Read-only. * @return a {@link WorkbookChartSeriesFormat} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public WorkbookChartSeriesFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the name property value. Represents the name of a series in a chart. + * Gets the name property value. The name of a series in a chart. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -53,7 +53,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the points property value. Represents a collection of all points in the series. Read-only. + * Gets the points property value. A collection of all points in the series. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -72,21 +72,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeCollectionOfObjectValues("points", this.getPoints()); } /** - * Sets the format property value. Represents the formatting of a chart series, which includes fill and line formatting. Read-only. + * Sets the format property value. The formatting of a chart series, which includes fill and line formatting. Read-only. * @param value Value to set for the format property. */ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartSeriesFormat value) { this.backingStore.set("format", value); } /** - * Sets the name property value. Represents the name of a series in a chart. + * Sets the name property value. The name of a series in a chart. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the points property value. Represents a collection of all points in the series. Read-only. + * Sets the points property value. A collection of all points in the series. Read-only. * @param value Value to set for the points property. */ public void setPoints(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartTitle.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartTitle.java index ad6ce0d51cf..7669e759d57 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartTitle.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookChartTitle.java @@ -38,7 +38,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the format property value. Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * Gets the format property value. The formatting of a chart title, which includes fill and font formatting. Read-only. * @return a {@link WorkbookChartTitleFormat} */ @jakarta.annotation.Nullable @@ -46,7 +46,7 @@ public WorkbookChartTitleFormat getFormat() { return this.backingStore.get("format"); } /** - * Gets the overlay property value. Boolean value representing if the chart title will overlay the chart or not. + * Gets the overlay property value. Indicates whether the chart title will overlay the chart or not. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -54,7 +54,7 @@ public Boolean getOverlay() { return this.backingStore.get("overlay"); } /** - * Gets the text property value. Represents the title text of a chart. + * Gets the text property value. The title text of the chart. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public String getText() { return this.backingStore.get("text"); } /** - * Gets the visible property value. A boolean value that represents the visibility of a chart title object. + * Gets the visible property value. Indicates whether the chart title is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -82,28 +82,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("visible", this.getVisible()); } /** - * Sets the format property value. Represents the formatting of a chart title, which includes fill and font formatting. Read-only. + * Sets the format property value. The formatting of a chart title, which includes fill and font formatting. Read-only. * @param value Value to set for the format property. */ public void setFormat(@jakarta.annotation.Nullable final WorkbookChartTitleFormat value) { this.backingStore.set("format", value); } /** - * Sets the overlay property value. Boolean value representing if the chart title will overlay the chart or not. + * Sets the overlay property value. Indicates whether the chart title will overlay the chart or not. * @param value Value to set for the overlay property. */ public void setOverlay(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("overlay", value); } /** - * Sets the text property value. Represents the title text of a chart. + * Sets the text property value. The title text of the chart. * @param value Value to set for the text property. */ public void setText(@jakarta.annotation.Nullable final String value) { this.backingStore.set("text", value); } /** - * Sets the visible property value. A boolean value that represents the visibility of a chart title object. + * Sets the visible property value. Indicates whether the chart title is visible. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookComment.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookComment.java index 9b12ba7f42b..c26aef8d9cb 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookComment.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookComment.java @@ -33,7 +33,7 @@ public String getContent() { return this.backingStore.get("content"); } /** - * Gets the contentType property value. Indicates the type for the comment. + * Gets the contentType property value. The content type of the comment. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -54,7 +54,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the replies property value. The replies property + * Gets the replies property value. The list of replies to the comment. Read-only. Nullable. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -89,14 +89,14 @@ public void setContent(@jakarta.annotation.Nullable final String value) { this.backingStore.set("content", value); } /** - * Sets the contentType property value. Indicates the type for the comment. + * Sets the contentType property value. The content type of the comment. * @param value Value to set for the contentType property. */ public void setContentType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("contentType", value); } /** - * Sets the replies property value. The replies property + * Sets the replies property value. The list of replies to the comment. Read-only. Nullable. * @param value Value to set for the replies property. */ public void setReplies(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookCommentReply.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookCommentReply.java index 9e71624c67d..990a1a6daab 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookCommentReply.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookCommentReply.java @@ -25,7 +25,7 @@ public static WorkbookCommentReply createFromDiscriminatorValue(@jakarta.annotat return new WorkbookCommentReply(); } /** - * Gets the content property value. The content of replied comment. + * Gets the content property value. The content of the reply. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public String getContent() { return this.backingStore.get("content"); } /** - * Gets the contentType property value. Indicates the type for the replied comment. + * Gets the contentType property value. The content type for the reply. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,14 +72,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("task", this.getTask()); } /** - * Sets the content property value. The content of replied comment. + * Sets the content property value. The content of the reply. * @param value Value to set for the content property. */ public void setContent(@jakarta.annotation.Nullable final String value) { this.backingStore.set("content", value); } /** - * Sets the contentType property value. Indicates the type for the replied comment. + * Sets the contentType property value. The content type for the reply. * @param value Value to set for the contentType property. */ public void setContentType(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookIcon.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookIcon.java index 67d3e22b83e..211fe2035ea 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookIcon.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookIcon.java @@ -68,7 +68,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the index property value. Represents the index of the icon in the given set. + * Gets the index property value. The index of the icon in the given set. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -84,7 +84,7 @@ public String getOdataType() { return this.backingStore.get("odataType"); } /** - * Gets the set property value. Represents the set that the icon is part of. Possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. + * Gets the set property value. The set that the icon is part of. Possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -118,7 +118,7 @@ public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value this.backingStore = value; } /** - * Sets the index property value. Represents the index of the icon in the given set. + * Sets the index property value. The index of the icon in the given set. * @param value Value to set for the index property. */ public void setIndex(@jakarta.annotation.Nullable final Integer value) { @@ -132,7 +132,7 @@ public void setOdataType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("odataType", value); } /** - * Sets the set property value. Represents the set that the icon is part of. Possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. + * Sets the set property value. The set that the icon is part of. Possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. * @param value Value to set for the set property. */ public void setSet(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookNamedItem.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookNamedItem.java index 6197e494759..f9e33362c08 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookNamedItem.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookNamedItem.java @@ -26,7 +26,7 @@ public static WorkbookNamedItem createFromDiscriminatorValue(@jakarta.annotation return new WorkbookNamedItem(); } /** - * Gets the comment property value. Represents the comment associated with this name. + * Gets the comment property value. The comment associated with this name. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -66,7 +66,7 @@ public String getScope() { return this.backingStore.get("scope"); } /** - * Gets the type property value. Indicates what type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. + * Gets the type property value. The type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -74,7 +74,7 @@ public String getType() { return this.backingStore.get("type"); } /** - * Gets the value property value. Represents the formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. + * Gets the value property value. The formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -82,7 +82,7 @@ public UntypedNode getValue() { return this.backingStore.get("value"); } /** - * Gets the visible property value. Specifies whether the object is visible or not. + * Gets the visible property value. Indicates whether the object is visible. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -90,7 +90,7 @@ public Boolean getVisible() { return this.backingStore.get("visible"); } /** - * Gets the worksheet property value. Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Gets the worksheet property value. Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @return a {@link WorkbookWorksheet} */ @jakarta.annotation.Nullable @@ -113,7 +113,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("worksheet", this.getWorksheet()); } /** - * Sets the comment property value. Represents the comment associated with this name. + * Sets the comment property value. The comment associated with this name. * @param value Value to set for the comment property. */ public void setComment(@jakarta.annotation.Nullable final String value) { @@ -134,28 +134,28 @@ public void setScope(@jakarta.annotation.Nullable final String value) { this.backingStore.set("scope", value); } /** - * Sets the type property value. Indicates what type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. + * Sets the type property value. The type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. * @param value Value to set for the type property. */ public void setType(@jakarta.annotation.Nullable final String value) { this.backingStore.set("type", value); } /** - * Sets the value property value. Represents the formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. + * Sets the value property value. The formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. * @param value Value to set for the value property. */ public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("value", value); } /** - * Sets the visible property value. Specifies whether the object is visible or not. + * Sets the visible property value. Indicates whether the object is visible. * @param value Value to set for the visible property. */ public void setVisible(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("visible", value); } /** - * Sets the worksheet property value. Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. + * Sets the worksheet property value. Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. * @param value Value to set for the worksheet property. */ public void setWorksheet(@jakarta.annotation.Nullable final WorkbookWorksheet value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookPivotTable.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookPivotTable.java index ec3070d873c..9e06127c1e5 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookPivotTable.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookPivotTable.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the name property value. Name of the PivotTable. + * Gets the name property value. The name of the pivot table. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -44,7 +44,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the worksheet property value. The worksheet containing the current PivotTable. Read-only. + * Gets the worksheet property value. The worksheet that contains the current pivot table. Read-only. * @return a {@link WorkbookWorksheet} */ @jakarta.annotation.Nullable @@ -62,14 +62,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("worksheet", this.getWorksheet()); } /** - * Sets the name property value. Name of the PivotTable. + * Sets the name property value. The name of the pivot table. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the worksheet property value. The worksheet containing the current PivotTable. Read-only. + * Sets the worksheet property value. The worksheet that contains the current pivot table. Read-only. * @param value Value to set for the worksheet property. */ public void setWorksheet(@jakarta.annotation.Nullable final WorkbookWorksheet value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRange.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRange.java index 935b8dd03ef..40caf68e1a3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRange.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRange.java @@ -191,7 +191,7 @@ public UntypedNode getText() { return this.backingStore.get("text"); } /** - * Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -362,7 +362,7 @@ public void setText(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("text", value); } /** - * Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeBorder.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeBorder.java index 4f143703927..3c0f1c704ba 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeBorder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeBorder.java @@ -25,7 +25,7 @@ public static WorkbookRangeBorder createFromDiscriminatorValue(@jakarta.annotati return new WorkbookRangeBorder(); } /** - * Gets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange'). + * Gets the color property value. The HTML color code that represents the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or a named HTML color, for example 'orange'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -46,7 +46,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the sideIndex property value. Constant value that indicates the specific side of the border. Possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. + * Gets the sideIndex property value. Indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -54,7 +54,7 @@ public String getSideIndex() { return this.backingStore.get("sideIndex"); } /** - * Gets the style property value. One of the constants of line style specifying the line style for the border. Possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. + * Gets the style property value. Indicates the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -62,7 +62,7 @@ public String getStyle() { return this.backingStore.get("style"); } /** - * Gets the weight property value. Specifies the weight of the border around a range. Possible values are: Hairline, Thin, Medium, Thick. + * Gets the weight property value. The weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -82,28 +82,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("weight", this.getWeight()); } /** - * Sets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange'). + * Sets the color property value. The HTML color code that represents the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or a named HTML color, for example 'orange'. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { this.backingStore.set("color", value); } /** - * Sets the sideIndex property value. Constant value that indicates the specific side of the border. Possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. + * Sets the sideIndex property value. Indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. * @param value Value to set for the sideIndex property. */ public void setSideIndex(@jakarta.annotation.Nullable final String value) { this.backingStore.set("sideIndex", value); } /** - * Sets the style property value. One of the constants of line style specifying the line style for the border. Possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. + * Sets the style property value. Indicates the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. * @param value Value to set for the style property. */ public void setStyle(@jakarta.annotation.Nullable final String value) { this.backingStore.set("style", value); } /** - * Sets the weight property value. Specifies the weight of the border around a range. Possible values are: Hairline, Thin, Medium, Thick. + * Sets the weight property value. The weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick. * @param value Value to set for the weight property. */ public void setWeight(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFill.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFill.java index c656226ab5e..f83447739ae 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFill.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFill.java @@ -25,7 +25,7 @@ public static WorkbookRangeFill createFromDiscriminatorValue(@jakarta.annotation return new WorkbookRangeFill(); } /** - * Gets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange') + * Gets the color property value. HTML color code representing the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or be a named HTML color, for example 'orange'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -52,7 +52,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("color", this.getColor()); } /** - * Sets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange') + * Sets the color property value. HTML color code representing the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or be a named HTML color, for example 'orange'. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFont.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFont.java index e8e25b3d2d0..390e7f48301 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFont.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFont.java @@ -25,7 +25,7 @@ public static WorkbookRangeFont createFromDiscriminatorValue(@jakarta.annotation return new WorkbookRangeFont(); } /** - * Gets the bold property value. Represents the bold status of font. + * Gets the bold property value. Inidicates whether the font is bold. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -33,7 +33,7 @@ public Boolean getBold() { return this.backingStore.get("bold"); } /** - * Gets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. + * Gets the color property value. The HTML color code representation of the text color. For example, #FF0000 represents the color red. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -56,7 +56,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the italic property value. Represents the italic status of the font. + * Gets the italic property value. Inidicates whether the font is italic. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public Boolean getItalic() { return this.backingStore.get("italic"); } /** - * Gets the name property value. Font name (for example 'Calibri') + * Gets the name property value. The font name. For example, 'Calibri'. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the size property value. Font size. + * Gets the size property value. The font size. * @return a {@link Double} */ @jakarta.annotation.Nullable @@ -80,7 +80,7 @@ public Double getSize() { return this.backingStore.get("size"); } /** - * Gets the underline property value. Type of underline applied to the font. Possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. + * Gets the underline property value. The type of underlining applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -102,42 +102,42 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("underline", this.getUnderline()); } /** - * Sets the bold property value. Represents the bold status of font. + * Sets the bold property value. Inidicates whether the font is bold. * @param value Value to set for the bold property. */ public void setBold(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("bold", value); } /** - * Sets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. + * Sets the color property value. The HTML color code representation of the text color. For example, #FF0000 represents the color red. * @param value Value to set for the color property. */ public void setColor(@jakarta.annotation.Nullable final String value) { this.backingStore.set("color", value); } /** - * Sets the italic property value. Represents the italic status of the font. + * Sets the italic property value. Inidicates whether the font is italic. * @param value Value to set for the italic property. */ public void setItalic(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("italic", value); } /** - * Sets the name property value. Font name (for example 'Calibri') + * Sets the name property value. The font name. For example, 'Calibri'. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the size property value. Font size. + * Sets the size property value. The font size. * @param value Value to set for the size property. */ public void setSize(@jakarta.annotation.Nullable final Double value) { this.backingStore.set("size", value); } /** - * Sets the underline property value. Type of underline applied to the font. Possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. + * Sets the underline property value. The type of underlining applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. * @param value Value to set for the underline property. */ public void setUnderline(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFormat.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFormat.java index 3183ae100ec..0460fec0a87 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFormat.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookRangeFormat.java @@ -33,7 +33,7 @@ public java.util.List getBorders() { return this.backingStore.get("borders"); } /** - * Gets the columnWidth property value. Gets or sets the width of all columns within the range. If the column widths aren't uniform, null will be returned. + * Gets the columnWidth property value. The width of all columns within the range. If the column widths aren't uniform, null will be returned. * @return a {@link Double} */ @jakarta.annotation.Nullable @@ -75,7 +75,7 @@ public WorkbookRangeFont getFont() { return this.backingStore.get("font"); } /** - * Gets the horizontalAlignment property value. Represents the horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed. + * Gets the horizontalAlignment property value. The horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -91,7 +91,7 @@ public WorkbookFormatProtection getProtection() { return this.backingStore.get("protection"); } /** - * Gets the rowHeight property value. Gets or sets the height of all rows in the range. If the row heights aren't uniform null will be returned. + * Gets the rowHeight property value. The height of all rows in the range. If the row heights aren't uniform null will be returned. * @return a {@link Double} */ @jakarta.annotation.Nullable @@ -99,7 +99,7 @@ public Double getRowHeight() { return this.backingStore.get("rowHeight"); } /** - * Gets the verticalAlignment property value. Represents the vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed. + * Gets the verticalAlignment property value. The vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -107,7 +107,7 @@ public String getVerticalAlignment() { return this.backingStore.get("verticalAlignment"); } /** - * Gets the wrapText property value. Indicates if Excel wraps the text in the object. A null value indicates that the entire range doesn't have uniform wrap setting + * Gets the wrapText property value. Indicates whether Excel wraps the text in the object. A null value indicates that the entire range doesn't have a uniform wrap setting. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -139,7 +139,7 @@ public void setBorders(@jakarta.annotation.Nullable final java.util.List> getFieldDeserializers return deserializerMap; } /** - * Gets the formulas property value. Represents the formula in A1-style notation. + * Gets the formulas property value. The formula in A1-style notation. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -71,7 +71,7 @@ public UntypedNode getFormulas() { return this.backingStore.get("formulas"); } /** - * Gets the formulasLocal property value. Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. + * Gets the formulasLocal property value. The formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -87,7 +87,7 @@ public UntypedNode getFormulasR1C1() { return this.backingStore.get("formulasR1C1"); } /** - * Gets the index property value. Index of the range. + * Gets the index property value. The index of the range. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -95,7 +95,7 @@ public Integer getIndex() { return this.backingStore.get("index"); } /** - * Gets the numberFormat property value. Represents Excel's number format code for the given cell. Read-only. + * Gets the numberFormat property value. Excel's number format code for the given cell. Read-only. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -103,7 +103,7 @@ public UntypedNode getNumberFormat() { return this.backingStore.get("numberFormat"); } /** - * Gets the rowCount property value. Returns the number of visible rows. Read-only. + * Gets the rowCount property value. The number of visible rows. Read-only. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -111,7 +111,7 @@ public Integer getRowCount() { return this.backingStore.get("rowCount"); } /** - * Gets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only. + * Gets the rows property value. The collection of range views associated with the range. Read-only. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -119,7 +119,7 @@ public java.util.List getRows() { return this.backingStore.get("rows"); } /** - * Gets the text property value. Text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. + * Gets the text property value. The text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -127,7 +127,7 @@ public UntypedNode getText() { return this.backingStore.get("text"); } /** - * Gets the values property value. Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Gets the values property value. The raw values of the specified range view. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -135,7 +135,7 @@ public UntypedNode getValues() { return this.backingStore.get("values"); } /** - * Gets the valueTypes property value. Represents the type of data of each cell. Read-only. Possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. + * Gets the valueTypes property value. The type of data of each cell. Read-only. Possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -170,21 +170,21 @@ public void setCellAddresses(@jakarta.annotation.Nullable final UntypedNode valu this.backingStore.set("cellAddresses", value); } /** - * Sets the columnCount property value. Returns the number of visible columns. Read-only. + * Sets the columnCount property value. The number of visible columns. Read-only. * @param value Value to set for the columnCount property. */ public void setColumnCount(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("columnCount", value); } /** - * Sets the formulas property value. Represents the formula in A1-style notation. + * Sets the formulas property value. The formula in A1-style notation. * @param value Value to set for the formulas property. */ public void setFormulas(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("formulas", value); } /** - * Sets the formulasLocal property value. Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. + * Sets the formulasLocal property value. The formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. * @param value Value to set for the formulasLocal property. */ public void setFormulasLocal(@jakarta.annotation.Nullable final UntypedNode value) { @@ -198,49 +198,49 @@ public void setFormulasR1C1(@jakarta.annotation.Nullable final UntypedNode value this.backingStore.set("formulasR1C1", value); } /** - * Sets the index property value. Index of the range. + * Sets the index property value. The index of the range. * @param value Value to set for the index property. */ public void setIndex(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("index", value); } /** - * Sets the numberFormat property value. Represents Excel's number format code for the given cell. Read-only. + * Sets the numberFormat property value. Excel's number format code for the given cell. Read-only. * @param value Value to set for the numberFormat property. */ public void setNumberFormat(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("numberFormat", value); } /** - * Sets the rowCount property value. Returns the number of visible rows. Read-only. + * Sets the rowCount property value. The number of visible rows. Read-only. * @param value Value to set for the rowCount property. */ public void setRowCount(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("rowCount", value); } /** - * Sets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only. + * Sets the rows property value. The collection of range views associated with the range. Read-only. Read-only. * @param value Value to set for the rows property. */ public void setRows(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("rows", value); } /** - * Sets the text property value. Text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. + * Sets the text property value. The text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. * @param value Value to set for the text property. */ public void setText(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("text", value); } /** - * Sets the values property value. Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Sets the values property value. The raw values of the specified range view. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { this.backingStore.set("values", value); } /** - * Sets the valueTypes property value. Represents the type of data of each cell. Read-only. Possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. + * Sets the valueTypes property value. The type of data of each cell. Read-only. Possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. * @param value Value to set for the valueTypes property. */ public void setValueTypes(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTable.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTable.java index 5b1d5c31689..4068278497c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTable.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTable.java @@ -25,7 +25,7 @@ public static WorkbookTable createFromDiscriminatorValue(@jakarta.annotation.Non return new WorkbookTable(); } /** - * Gets the columns property value. Represents a collection of all the columns in the table. Read-only. + * Gets the columns property value. The list of all the columns in the table. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -72,7 +72,7 @@ public Boolean getHighlightLastColumn() { return this.backingStore.get("highlightLastColumn"); } /** - * Gets the legacyId property value. Legacy Id used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. + * Gets the legacyId property value. A legacy identifier used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -80,7 +80,7 @@ public String getLegacyId() { return this.backingStore.get("legacyId"); } /** - * Gets the name property value. Name of the table. + * Gets the name property value. The name of the table. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -88,7 +88,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the rows property value. Represents a collection of all the rows in the table. Read-only. + * Gets the rows property value. The list of all the rows in the table. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -136,7 +136,7 @@ public Boolean getShowTotals() { return this.backingStore.get("showTotals"); } /** - * Gets the sort property value. Represents the sorting for the table. Read-only. + * Gets the sort property value. The sorting for the table. Read-only. * @return a {@link WorkbookTableSort} */ @jakarta.annotation.Nullable @@ -144,7 +144,7 @@ public WorkbookTableSort getSort() { return this.backingStore.get("sort"); } /** - * Gets the style property value. Constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. + * Gets the style property value. A constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -182,7 +182,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("worksheet", this.getWorksheet()); } /** - * Sets the columns property value. Represents a collection of all the columns in the table. Read-only. + * Sets the columns property value. The list of all the columns in the table. Read-only. * @param value Value to set for the columns property. */ public void setColumns(@jakarta.annotation.Nullable final java.util.List value) { @@ -203,21 +203,21 @@ public void setHighlightLastColumn(@jakarta.annotation.Nullable final Boolean va this.backingStore.set("highlightLastColumn", value); } /** - * Sets the legacyId property value. Legacy Id used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. + * Sets the legacyId property value. A legacy identifier used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. * @param value Value to set for the legacyId property. */ public void setLegacyId(@jakarta.annotation.Nullable final String value) { this.backingStore.set("legacyId", value); } /** - * Sets the name property value. Name of the table. + * Sets the name property value. The name of the table. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the rows property value. Represents a collection of all the rows in the table. Read-only. + * Sets the rows property value. The list of all the rows in the table. Read-only. * @param value Value to set for the rows property. */ public void setRows(@jakarta.annotation.Nullable final java.util.List value) { @@ -259,14 +259,14 @@ public void setShowTotals(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("showTotals", value); } /** - * Sets the sort property value. Represents the sorting for the table. Read-only. + * Sets the sort property value. The sorting for the table. Read-only. * @param value Value to set for the sort property. */ public void setSort(@jakarta.annotation.Nullable final WorkbookTableSort value) { this.backingStore.set("sort", value); } /** - * Sets the style property value. Constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. + * Sets the style property value. A constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. * @param value Value to set for the style property. */ public void setStyle(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableColumn.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableColumn.java index 1bd60e529a0..ec2a33cdef7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableColumn.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableColumn.java @@ -39,7 +39,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the filter property value. Retrieve the filter applied to the column. Read-only. + * Gets the filter property value. The filter applied to the column. Read-only. * @return a {@link WorkbookFilter} */ @jakarta.annotation.Nullable @@ -47,7 +47,7 @@ public WorkbookFilter getFilter() { return this.backingStore.get("filter"); } /** - * Gets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only. + * Gets the index property value. The index of the column within the columns collection of the table. Zero-indexed. Read-only. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -55,7 +55,7 @@ public Integer getIndex() { return this.backingStore.get("index"); } /** - * Gets the name property value. Returns the name of the table column. + * Gets the name property value. The name of the table column. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -63,7 +63,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contain an error will return the error string. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -83,28 +83,28 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("values", this.getValues()); } /** - * Sets the filter property value. Retrieve the filter applied to the column. Read-only. + * Sets the filter property value. The filter applied to the column. Read-only. * @param value Value to set for the filter property. */ public void setFilter(@jakarta.annotation.Nullable final WorkbookFilter value) { this.backingStore.set("filter", value); } /** - * Sets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only. + * Sets the index property value. The index of the column within the columns collection of the table. Zero-indexed. Read-only. * @param value Value to set for the index property. */ public void setIndex(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("index", value); } /** - * Sets the name property value. Returns the name of the table column. + * Sets the name property value. The name of the table column. * @param value Value to set for the name property. */ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. + * Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contain an error will return the error string. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableRow.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableRow.java index 2d566d348a5..3e21c42422a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableRow.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableRow.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the index property value. Returns the index number of the row within the rows collection of the table. Zero-indexed. Read-only. + * Gets the index property value. The index of the row within the rows collection of the table. Zero-based. Read-only. * @return a {@link Integer} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public Integer getIndex() { return this.backingStore.get("index"); } /** - * Gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. + * Gets the values property value. The raw values of the specified range. The data returned could be of type string, number, or a Boolean. Any cell that contain an error will return the error string. * @return a {@link UntypedNode} */ @jakarta.annotation.Nullable @@ -63,14 +63,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeObjectValue("values", this.getValues()); } /** - * Sets the index property value. Returns the index number of the row within the rows collection of the table. Zero-indexed. Read-only. + * Sets the index property value. The index of the row within the rows collection of the table. Zero-based. Read-only. * @param value Value to set for the index property. */ public void setIndex(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("index", value); } /** - * Sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. + * Sets the values property value. The raw values of the specified range. The data returned could be of type string, number, or a Boolean. Any cell that contain an error will return the error string. * @param value Value to set for the values property. */ public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableSort.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableSort.java index 45b3c88cf86..7327035520c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableSort.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookTableSort.java @@ -37,7 +37,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the fields property value. The fields property + * Gets the fields property value. The list of the current conditions last used to sort the table. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -45,7 +45,7 @@ public java.util.List getFields() { return this.backingStore.get("fields"); } /** - * Gets the matchCase property value. Represents whether the casing impacted the last sort of the table. Read-only. + * Gets the matchCase property value. Indicates whether the casing impacted the last sort of the table. Read-only. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -53,7 +53,7 @@ public Boolean getMatchCase() { return this.backingStore.get("matchCase"); } /** - * Gets the method property value. Represents Chinese character ordering method last used to sort the table. Possible values are: PinYin, StrokeCount. Read-only. + * Gets the method property value. The Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only. * @return a {@link String} */ @jakarta.annotation.Nullable @@ -72,21 +72,21 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("method", this.getMethod()); } /** - * Sets the fields property value. The fields property + * Sets the fields property value. The list of the current conditions last used to sort the table. Read-only. * @param value Value to set for the fields property. */ public void setFields(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("fields", value); } /** - * Sets the matchCase property value. Represents whether the casing impacted the last sort of the table. Read-only. + * Sets the matchCase property value. Indicates whether the casing impacted the last sort of the table. Read-only. * @param value Value to set for the matchCase property. */ public void setMatchCase(@jakarta.annotation.Nullable final Boolean value) { this.backingStore.set("matchCase", value); } /** - * Sets the method property value. Represents Chinese character ordering method last used to sort the table. Possible values are: PinYin, StrokeCount. Read-only. + * Sets the method property value. The Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only. * @param value Value to set for the method property. */ public void setMethod(@jakarta.annotation.Nullable final String value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookWorksheet.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookWorksheet.java index 6706e08dd65..82ae4c69fa6 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookWorksheet.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookWorksheet.java @@ -25,7 +25,7 @@ public static WorkbookWorksheet createFromDiscriminatorValue(@jakarta.annotation return new WorkbookWorksheet(); } /** - * Gets the charts property value. Returns collection of charts that are part of the worksheet. Read-only. + * Gets the charts property value. The list of charts that are part of the worksheet. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -59,7 +59,7 @@ public String getName() { return this.backingStore.get("name"); } /** - * Gets the names property value. Returns collection of names that are associated with the worksheet. Read-only. + * Gets the names property value. The list of names that are associated with the worksheet. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -67,7 +67,7 @@ public java.util.List getNames() { return this.backingStore.get("names"); } /** - * Gets the pivotTables property value. Collection of PivotTables that are part of the worksheet. + * Gets the pivotTables property value. The list of piot tables that are part of the worksheet. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -83,7 +83,7 @@ public Integer getPosition() { return this.backingStore.get("position"); } /** - * Gets the protection property value. Returns sheet protection object for a worksheet. Read-only. + * Gets the protection property value. The sheet protection object for a worksheet. Read-only. * @return a {@link WorkbookWorksheetProtection} */ @jakarta.annotation.Nullable @@ -91,7 +91,7 @@ public WorkbookWorksheetProtection getProtection() { return this.backingStore.get("protection"); } /** - * Gets the tables property value. Collection of tables that are part of the worksheet. Read-only. + * Gets the tables property value. The list of tables that are part of the worksheet. Read-only. * @return a {@link java.util.List} */ @jakarta.annotation.Nullable @@ -132,7 +132,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("visibility", this.getVisibility()); } /** - * Sets the charts property value. Returns collection of charts that are part of the worksheet. Read-only. + * Sets the charts property value. The list of charts that are part of the worksheet. Read-only. * @param value Value to set for the charts property. */ public void setCharts(@jakarta.annotation.Nullable final java.util.List value) { @@ -146,14 +146,14 @@ public void setName(@jakarta.annotation.Nullable final String value) { this.backingStore.set("name", value); } /** - * Sets the names property value. Returns collection of names that are associated with the worksheet. Read-only. + * Sets the names property value. The list of names that are associated with the worksheet. Read-only. * @param value Value to set for the names property. */ public void setNames(@jakarta.annotation.Nullable final java.util.List value) { this.backingStore.set("names", value); } /** - * Sets the pivotTables property value. Collection of PivotTables that are part of the worksheet. + * Sets the pivotTables property value. The list of piot tables that are part of the worksheet. * @param value Value to set for the pivotTables property. */ public void setPivotTables(@jakarta.annotation.Nullable final java.util.List value) { @@ -167,14 +167,14 @@ public void setPosition(@jakarta.annotation.Nullable final Integer value) { this.backingStore.set("position", value); } /** - * Sets the protection property value. Returns sheet protection object for a worksheet. Read-only. + * Sets the protection property value. The sheet protection object for a worksheet. Read-only. * @param value Value to set for the protection property. */ public void setProtection(@jakarta.annotation.Nullable final WorkbookWorksheetProtection value) { this.backingStore.set("protection", value); } /** - * Sets the tables property value. Collection of tables that are part of the worksheet. Read-only. + * Sets the tables property value. The list of tables that are part of the worksheet. Read-only. * @param value Value to set for the tables property. */ public void setTables(@jakarta.annotation.Nullable final java.util.List value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookWorksheetProtection.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookWorksheetProtection.java index 89e35da9088..b538bd7dde4 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookWorksheetProtection.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkbookWorksheetProtection.java @@ -36,7 +36,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the options property value. Sheet protection options. Read-only. + * Gets the options property value. Worksheet protection options. Read-only. * @return a {@link WorkbookWorksheetProtectionOptions} */ @jakarta.annotation.Nullable @@ -44,7 +44,7 @@ public WorkbookWorksheetProtectionOptions getOptions() { return this.backingStore.get("options"); } /** - * Gets the protected property value. Indicates if the worksheet is protected. Read-only. + * Gets the protected property value. Indicates whether the worksheet is protected. Read-only. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -62,14 +62,14 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeBooleanValue("protected", this.getProtected()); } /** - * Sets the options property value. Sheet protection options. Read-only. + * Sets the options property value. Worksheet protection options. Read-only. * @param value Value to set for the options property. */ public void setOptions(@jakarta.annotation.Nullable final WorkbookWorksheetProtectionOptions value) { this.backingStore.set("options", value); } /** - * Sets the protected property value. Indicates if the worksheet is protected. Read-only. + * Sets the protected property value. Indicates whether the worksheet is protected. Read-only. * @param value Value to set for the protected property. */ public void setProtected(@jakarta.annotation.Nullable final Boolean value) { diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/WorkingTimeSchedule.java b/src/main/java/com/microsoft/graph/beta/generated/models/WorkingTimeSchedule.java new file mode 100644 index 00000000000..71424b8852b --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/WorkingTimeSchedule.java @@ -0,0 +1,44 @@ +package com.microsoft.graph.beta.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 WorkingTimeSchedule extends Entity implements Parsable { + /** + * Instantiates a new {@link WorkingTimeSchedule} and sets the default values. + */ + public WorkingTimeSchedule() { + 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 WorkingTimeSchedule} + */ + @jakarta.annotation.Nonnull + public static WorkingTimeSchedule createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new WorkingTimeSchedule(); + } + /** + * 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/beta/generated/models/identitygovernance/Task.java b/src/main/java/com/microsoft/graph/beta/generated/models/identitygovernance/Task.java index 1a1a1ae24d5..92b78afd777 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/identitygovernance/Task.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/identitygovernance/Task.java @@ -44,7 +44,7 @@ public EnumSet getCategory() { return this.backingStore.get("category"); } /** - * Gets the continueOnError property value. A boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. + * Gets the continueOnError property value. A Boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -94,7 +94,7 @@ public Map> getFieldDeserializers return deserializerMap; } /** - * Gets the isEnabled property value. A boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. + * Gets the isEnabled property value. A Boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. * @return a {@link Boolean} */ @jakarta.annotation.Nullable @@ -149,7 +149,7 @@ public void setCategory(@jakarta.annotation.Nullable final EnumSet>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("requestId", (n) -> { this.setRequestId(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the requestId property value. The unique identifier for the sign-in request. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getRequestId() { + return this.backingStore.get("requestId"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeStringValue("requestId", this.getRequestId()); + } + /** + * Sets the requestId property value. The unique identifier for the sign-in request. + * @param value Value to set for the requestId property. + */ + public void setRequestId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("requestId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/security/CloudLogonSessionEvidence.java b/src/main/java/com/microsoft/graph/beta/generated/models/security/CloudLogonSessionEvidence.java new file mode 100644 index 00000000000..eb3524add7d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/models/security/CloudLogonSessionEvidence.java @@ -0,0 +1,199 @@ +package com.microsoft.graph.beta.models.security; + +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CloudLogonSessionEvidence extends AlertEvidence implements Parsable { + /** + * Instantiates a new {@link CloudLogonSessionEvidence} and sets the default values. + */ + public CloudLogonSessionEvidence() { + super(); + this.setOdataType("#microsoft.graph.security.cloudLogonSessionEvidence"); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link CloudLogonSessionEvidence} + */ + @jakarta.annotation.Nonnull + public static CloudLogonSessionEvidence createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new CloudLogonSessionEvidence(); + } + /** + * Gets the account property value. The account associated with the sign-in session. + * @return a {@link UserEvidence} + */ + @jakarta.annotation.Nullable + public UserEvidence getAccount() { + return this.backingStore.get("account"); + } + /** + * Gets the browser property value. The browser that is used for the sign-in, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getBrowser() { + return this.backingStore.get("browser"); + } + /** + * Gets the deviceName property value. The friendly name of the device, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDeviceName() { + return this.backingStore.get("deviceName"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers()); + deserializerMap.put("account", (n) -> { this.setAccount(n.getObjectValue(UserEvidence::createFromDiscriminatorValue)); }); + deserializerMap.put("browser", (n) -> { this.setBrowser(n.getStringValue()); }); + deserializerMap.put("deviceName", (n) -> { this.setDeviceName(n.getStringValue()); }); + deserializerMap.put("operatingSystem", (n) -> { this.setOperatingSystem(n.getStringValue()); }); + deserializerMap.put("previousLogonDateTime", (n) -> { this.setPreviousLogonDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("protocol", (n) -> { this.setProtocol(n.getStringValue()); }); + deserializerMap.put("sessionId", (n) -> { this.setSessionId(n.getStringValue()); }); + deserializerMap.put("startUtcDateTime", (n) -> { this.setStartUtcDateTime(n.getOffsetDateTimeValue()); }); + deserializerMap.put("userAgent", (n) -> { this.setUserAgent(n.getStringValue()); }); + return deserializerMap; + } + /** + * Gets the operatingSystem property value. The operating system that the device is running, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getOperatingSystem() { + return this.backingStore.get("operatingSystem"); + } + /** + * Gets the previousLogonDateTime property value. The previous sign-in time for this account, if known. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getPreviousLogonDateTime() { + return this.backingStore.get("previousLogonDateTime"); + } + /** + * Gets the protocol property value. The authentication protocol that is used in this session, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getProtocol() { + return this.backingStore.get("protocol"); + } + /** + * Gets the sessionId property value. The session ID for the account reported in the alert. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSessionId() { + return this.backingStore.get("sessionId"); + } + /** + * Gets the startUtcDateTime property value. The session start time, if known. + * @return a {@link OffsetDateTime} + */ + @jakarta.annotation.Nullable + public OffsetDateTime getStartUtcDateTime() { + return this.backingStore.get("startUtcDateTime"); + } + /** + * Gets the userAgent property value. The user agent that is used for the sign-in, if known. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getUserAgent() { + return this.backingStore.get("userAgent"); + } + /** + * Serializes information the current object + * @param writer Serialization writer to use to serialize this model + */ + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { + Objects.requireNonNull(writer); + super.serialize(writer); + writer.writeObjectValue("account", this.getAccount()); + writer.writeStringValue("browser", this.getBrowser()); + writer.writeStringValue("deviceName", this.getDeviceName()); + writer.writeStringValue("operatingSystem", this.getOperatingSystem()); + writer.writeOffsetDateTimeValue("previousLogonDateTime", this.getPreviousLogonDateTime()); + writer.writeStringValue("protocol", this.getProtocol()); + writer.writeStringValue("sessionId", this.getSessionId()); + writer.writeOffsetDateTimeValue("startUtcDateTime", this.getStartUtcDateTime()); + writer.writeStringValue("userAgent", this.getUserAgent()); + } + /** + * Sets the account property value. The account associated with the sign-in session. + * @param value Value to set for the account property. + */ + public void setAccount(@jakarta.annotation.Nullable final UserEvidence value) { + this.backingStore.set("account", value); + } + /** + * Sets the browser property value. The browser that is used for the sign-in, if known. + * @param value Value to set for the browser property. + */ + public void setBrowser(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("browser", value); + } + /** + * Sets the deviceName property value. The friendly name of the device, if known. + * @param value Value to set for the deviceName property. + */ + public void setDeviceName(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("deviceName", value); + } + /** + * Sets the operatingSystem property value. The operating system that the device is running, if known. + * @param value Value to set for the operatingSystem property. + */ + public void setOperatingSystem(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("operatingSystem", value); + } + /** + * Sets the previousLogonDateTime property value. The previous sign-in time for this account, if known. + * @param value Value to set for the previousLogonDateTime property. + */ + public void setPreviousLogonDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("previousLogonDateTime", value); + } + /** + * Sets the protocol property value. The authentication protocol that is used in this session, if known. + * @param value Value to set for the protocol property. + */ + public void setProtocol(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("protocol", value); + } + /** + * Sets the sessionId property value. The session ID for the account reported in the alert. + * @param value Value to set for the sessionId property. + */ + public void setSessionId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("sessionId", value); + } + /** + * Sets the startUtcDateTime property value. The session start time, if known. + * @param value Value to set for the startUtcDateTime property. + */ + public void setStartUtcDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) { + this.backingStore.set("startUtcDateTime", value); + } + /** + * Sets the userAgent property value. The user agent that is used for the sign-in, if known. + * @param value Value to set for the userAgent property. + */ + public void setUserAgent(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("userAgent", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/security/Incident.java b/src/main/java/com/microsoft/graph/beta/generated/models/security/Incident.java index b0953879f7c..f457ad055f1 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/security/Incident.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/security/Incident.java @@ -123,6 +123,7 @@ public Map> getFieldDeserializers deserializerMap.put("resolvingComment", (n) -> { this.setResolvingComment(n.getStringValue()); }); deserializerMap.put("severity", (n) -> { this.setSeverity(n.getEnumValue(AlertSeverity::forValue)); }); deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(IncidentStatus::forValue)); }); + deserializerMap.put("summary", (n) -> { this.setSummary(n.getStringValue()); }); deserializerMap.put("systemTags", (n) -> { this.setSystemTags(n.getCollectionOfPrimitiveValues(String.class)); }); deserializerMap.put("tenantId", (n) -> { this.setTenantId(n.getStringValue()); }); return deserializerMap; @@ -199,6 +200,14 @@ public AlertSeverity getSeverity() { public IncidentStatus getStatus() { return this.backingStore.get("status"); } + /** + * Gets the summary property value. The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getSummary() { + return this.backingStore.get("summary"); + } /** * Gets the systemTags property value. The collection of system tags that are associated with the incident. * @return a {@link java.util.List} @@ -240,6 +249,7 @@ public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writ writer.writeStringValue("resolvingComment", this.getResolvingComment()); writer.writeEnumValue("severity", this.getSeverity()); writer.writeEnumValue("status", this.getStatus()); + writer.writeStringValue("summary", this.getSummary()); writer.writeCollectionOfPrimitiveValues("systemTags", this.getSystemTags()); writer.writeStringValue("tenantId", this.getTenantId()); } @@ -369,6 +379,13 @@ public void setSeverity(@jakarta.annotation.Nullable final AlertSeverity value) public void setStatus(@jakarta.annotation.Nullable final IncidentStatus value) { this.backingStore.set("status", value); } + /** + * Sets the summary property value. The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. + * @param value Value to set for the summary property. + */ + public void setSummary(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("summary", value); + } /** * Sets the systemTags property value. The collection of system tags that are associated with the incident. * @param value Value to set for the systemTags property. diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/security/SubmissionResultCategory.java b/src/main/java/com/microsoft/graph/beta/generated/models/security/SubmissionResultCategory.java index dccdb5e371b..1d6f3c9a70e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/security/SubmissionResultCategory.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/security/SubmissionResultCategory.java @@ -14,7 +14,25 @@ public enum SubmissionResultCategory implements ValuedEnum { Spoof("spoof"), Unknown("unknown"), NoResultAvailable("noResultAvailable"), - UnknownFutureValue("unknownFutureValue"); + UnknownFutureValue("unknownFutureValue"), + BeingAnalyzed("beingAnalyzed"), + NotSubmittedToMicrosoft("notSubmittedToMicrosoft"), + PhishingSimulation("phishingSimulation"), + AllowedDueToOrganizationOverride("allowedDueToOrganizationOverride"), + BlockedDueToOrganizationOverride("blockedDueToOrganizationOverride"), + AllowedDueToUserOverride("allowedDueToUserOverride"), + BlockedDueToUserOverride("blockedDueToUserOverride"), + ItemNotfound("itemNotfound"), + ThreatsFound("threatsFound"), + NoThreatsFound("noThreatsFound"), + DomainImpersonation("domainImpersonation"), + UserImpersonation("userImpersonation"), + BrandImpersonation("brandImpersonation"), + AuthenticationFailure("authenticationFailure"), + SpoofedBlocked("spoofedBlocked"), + SpoofedAllowed("spoofedAllowed"), + ReasonLostInTransit("reasonLostInTransit"), + Bulk("bulk"); public final String value; SubmissionResultCategory(final String value) { this.value = value; @@ -35,6 +53,24 @@ public static SubmissionResultCategory forValue(@jakarta.annotation.Nonnull fina case "unknown": return Unknown; case "noResultAvailable": return NoResultAvailable; case "unknownFutureValue": return UnknownFutureValue; + case "beingAnalyzed": return BeingAnalyzed; + case "notSubmittedToMicrosoft": return NotSubmittedToMicrosoft; + case "phishingSimulation": return PhishingSimulation; + case "allowedDueToOrganizationOverride": return AllowedDueToOrganizationOverride; + case "blockedDueToOrganizationOverride": return BlockedDueToOrganizationOverride; + case "allowedDueToUserOverride": return AllowedDueToUserOverride; + case "blockedDueToUserOverride": return BlockedDueToUserOverride; + case "itemNotfound": return ItemNotfound; + case "threatsFound": return ThreatsFound; + case "noThreatsFound": return NoThreatsFound; + case "domainImpersonation": return DomainImpersonation; + case "userImpersonation": return UserImpersonation; + case "brandImpersonation": return BrandImpersonation; + case "authenticationFailure": return AuthenticationFailure; + case "spoofedBlocked": return SpoofedBlocked; + case "spoofedAllowed": return SpoofedAllowed; + case "reasonLostInTransit": return ReasonLostInTransit; + case "bulk": return Bulk; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/models/security/SubmissionResultDetail.java b/src/main/java/com/microsoft/graph/beta/generated/models/security/SubmissionResultDetail.java index c7aa11f9bdb..4283202f8ce 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/models/security/SubmissionResultDetail.java +++ b/src/main/java/com/microsoft/graph/beta/generated/models/security/SubmissionResultDetail.java @@ -58,7 +58,24 @@ public enum SubmissionResultDetail implements ValuedEnum { BadReclassifiedAsBulk("badReclassifiedAsBulk"), BadReclassifiedAsBad("badReclassifiedAsBad"), BadReclassifiedAsCannotMakeDecision("badReclassifiedAsCannotMakeDecision"), - UnknownFutureValue("unknownFutureValue"); + UnknownFutureValue("unknownFutureValue"), + WillNotifyOnceDone("willNotifyOnceDone"), + CheckUserReportedSettings("checkUserReportedSettings"), + PartOfEducationCampaign("partOfEducationCampaign"), + AllowedByAdvancedDelivery("allowedByAdvancedDelivery"), + AllowedByEnhancedFiltering("allowedByEnhancedFiltering"), + ItemDeleted("itemDeleted"), + ItemFoundClean("itemFoundClean"), + ItemFoundMalicious("itemFoundMalicious"), + UnableToMakeDecision("unableToMakeDecision"), + DomainResembledYourOrganization("domainResembledYourOrganization"), + EndUserBeingImpersonated("endUserBeingImpersonated"), + AssociatedWithBrand("associatedWithBrand"), + SenderFailedAuthentication("senderFailedAuthentication"), + EndUserBeingSpoofed("endUserBeingSpoofed"), + ItemFoundBulk("itemFoundBulk"), + ItemNotReceivedByService("itemNotReceivedByService"), + ItemFoundSpam("itemFoundSpam"); public final String value; SubmissionResultDetail(final String value) { this.value = value; @@ -123,6 +140,23 @@ public static SubmissionResultDetail forValue(@jakarta.annotation.Nonnull final case "badReclassifiedAsBad": return BadReclassifiedAsBad; case "badReclassifiedAsCannotMakeDecision": return BadReclassifiedAsCannotMakeDecision; case "unknownFutureValue": return UnknownFutureValue; + case "willNotifyOnceDone": return WillNotifyOnceDone; + case "checkUserReportedSettings": return CheckUserReportedSettings; + case "partOfEducationCampaign": return PartOfEducationCampaign; + case "allowedByAdvancedDelivery": return AllowedByAdvancedDelivery; + case "allowedByEnhancedFiltering": return AllowedByEnhancedFiltering; + case "itemDeleted": return ItemDeleted; + case "itemFoundClean": return ItemFoundClean; + case "itemFoundMalicious": return ItemFoundMalicious; + case "unableToMakeDecision": return UnableToMakeDecision; + case "domainResembledYourOrganization": return DomainResembledYourOrganization; + case "endUserBeingImpersonated": return EndUserBeingImpersonated; + case "associatedWithBrand": return AssociatedWithBrand; + case "senderFailedAuthentication": return SenderFailedAuthentication; + case "endUserBeingSpoofed": return EndUserBeingSpoofed; + case "itemFoundBulk": return ItemFoundBulk; + case "itemNotReceivedByService": return ItemNotReceivedByService; + case "itemFoundSpam": return ItemFoundSpam; default: return null; } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/network/NetworkRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/network/NetworkRequestBuilder.java new file mode 100644 index 00000000000..64a25306eca --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/network/NetworkRequestBuilder.java @@ -0,0 +1,184 @@ +package com.microsoft.graph.beta.network; + +import com.microsoft.graph.beta.models.Network; +import com.microsoft.graph.beta.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 network singleton. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class NetworkRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link NetworkRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public NetworkRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/network{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link NetworkRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public NetworkRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/network{?%24expand,%24select}", rawUrl); + } + /** + * Get network + * @return a {@link Network} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Network get() { + return get(null); + } + /** + * Get network + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Network} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Network get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Network::createFromDiscriminatorValue); + } + /** + * Update network + * @param body Singleton for network operations on Microsoft Graph. + * @return a {@link Network} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Network patch(@jakarta.annotation.Nonnull final Network body) { + return patch(body, null); + } + /** + * Update network + * @param body Singleton for network operations on Microsoft Graph. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Network} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Network patch(@jakarta.annotation.Nonnull final Network body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, Network::createFromDiscriminatorValue); + } + /** + * Get network + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get network + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update network + * @param body Singleton for network operations on Microsoft Graph. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Network body) { + return toPatchRequestInformation(body, null); + } + /** + * Update network + * @param body Singleton for network operations on Microsoft Graph. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Network body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link NetworkRequestBuilder} + */ + @jakarta.annotation.Nonnull + public NetworkRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new NetworkRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get network + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/networkaccess/logs/remotenetworks/RemoteNetworksRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/networkaccess/logs/remotenetworks/RemoteNetworksRequestBuilder.java index 5172b6229d9..521b23b82b9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/networkaccess/logs/remotenetworks/RemoteNetworksRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/networkaccess/logs/remotenetworks/RemoteNetworksRequestBuilder.java @@ -60,21 +60,19 @@ public RemoteNetworksRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/networkAccess/logs/remoteNetworks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Retrieve a list of remote network health status microsoft.graph.networkaccess.remoteNetworkHealthStatusEvent events, providing insights into the health and status of remote networks. + * A collection of remote network health events. * @return a {@link RemoteNetworkHealthEventCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public RemoteNetworkHealthEventCollectionResponse get() { return get(null); } /** - * Retrieve a list of remote network health status microsoft.graph.networkaccess.remoteNetworkHealthStatusEvent events, providing insights into the health and status of remote networks. + * A collection of remote network health events. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RemoteNetworkHealthEventCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public RemoteNetworkHealthEventCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -109,7 +107,7 @@ public RemoteNetworkHealthEvent post(@jakarta.annotation.Nonnull final RemoteNet return this.requestAdapter.send(requestInfo, errorMapping, RemoteNetworkHealthEvent::createFromDiscriminatorValue); } /** - * Retrieve a list of remote network health status microsoft.graph.networkaccess.remoteNetworkHealthStatusEvent events, providing insights into the health and status of remote networks. + * A collection of remote network health events. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -117,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve a list of remote network health status microsoft.graph.networkaccess.remoteNetworkHealthStatusEvent events, providing insights into the health and status of remote networks. + * A collection of remote network health events. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -163,7 +161,7 @@ public RemoteNetworksRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RemoteNetworksRequestBuilder(rawUrl, requestAdapter); } /** - * Retrieve a list of remote network health status microsoft.graph.networkaccess.remoteNetworkHealthStatusEvent events, providing insights into the health and status of remote networks. + * A collection of remote network health events. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/organization/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/organization/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 01fefece323..15ba0d61592 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/organization/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/organization/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/organization/{organization%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/organization/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/organization/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..5dc15b4ff15 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/organization/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.organization.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/organization/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/organization/item/restore/RestoreRequestBuilder.java index 363beedcaf5..2b6e35e2454 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/organization/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/organization/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 370cf571399..581f7f27cd3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..c698bb7df2b --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.permissiongrants.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/permissiongrants/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/restore/RestoreRequestBuilder.java index c0bd1ef4d21..02260622db5 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/permissiongrants/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/riskdetections/RiskDetectionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/riskdetections/RiskDetectionsRequestBuilder.java index 796fcc9564e..d756edcf8c8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/riskdetections/RiskDetectionsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/riskdetections/RiskDetectionsRequestBuilder.java @@ -51,21 +51,21 @@ public RiskDetectionsRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/riskDetections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. * @return a {@link RiskDetectionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RiskDetectionCollectionResponse get() { return get(null); } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RiskDetectionCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public RiskDetectionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -100,7 +100,7 @@ public RiskDetection post(@jakarta.annotation.Nonnull final RiskDetection body, return this.requestAdapter.send(requestInfo, errorMapping, RiskDetection::createFromDiscriminatorValue); } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -108,7 +108,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -154,7 +154,7 @@ public RiskDetectionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RiskDetectionsRequestBuilder(rawUrl, requestAdapter); } /** - * Retrieve the properties of a riskDetection object. + * Retrieve the properties of a collection of riskDetection objects. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/appscope/AppScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/appscope/AppScopeRequestBuilder.java index e2fc8afffd7..8e3fb2bb483 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/appscope/AppScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/appscope/AppScopeRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public AppScope get() { return get(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AppScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index 67b867eb9ec..3353ca63d96 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/principal/PrincipalRequestBuilder.java index f28d59c569b..a47271c8c98 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index 4638c3ec2ba..51fc34fb5a7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/roleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java index cdc9132f0ec..535acf26bf8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public AppScope get() { return get(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AppScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index 6b1ed7d3e65..7ce64b226c7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java index 8da4981d835..89a8dc5e97b 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/directory/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index 37867ef48f9..678583dd631 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/directory/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/directory/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/appscope/AppScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/appscope/AppScopeRequestBuilder.java index d8d5eb83bcb..f541eba51e8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/appscope/AppScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/appscope/AppScopeRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public AppScope get() { return get(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AppScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index b98e9e1fc09..3b1d44879d0 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/enterpriseApps/{rbacApplication%2Did}/roleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/principal/PrincipalRequestBuilder.java index 3805222dd04..bacef1d9a18 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/enterpriseApps/{rbacApplication%2Did}/roleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index bceee5b976f..fe6bf7797cc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/enterpriseApps/{rbacApplication%2Did}/roleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java index 255ea5c7df3..80b71e8473f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public AppScope get() { return get(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AppScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index df2ede7f318..c8ebe2aad15 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/enterpriseApps/{rbacApplication%2Did}/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java index 974b8ff3e5b..5dfbf45f89e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/enterpriseApps/{rbacApplication%2Did}/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index 91b89103242..8a05551749f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/enterpriseapps/item/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/enterpriseApps/{rbacApplication%2Did}/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/appscope/AppScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/appscope/AppScopeRequestBuilder.java index e5cb18f5d04..ff03951fabd 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/appscope/AppScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/appscope/AppScopeRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public AppScope get() { return get(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AppScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index 2e2dbb11d00..afaf678693d 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/principal/PrincipalRequestBuilder.java index 95bf7078def..0de2aa6695e 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index 33634e2e862..66d9ca87756 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/roleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java index 2bf063e7443..6fc6b7b6dfb 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public AppScope get() { return get(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AppScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index 531ca90a846..ba9da5b5ae3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java index 69f3fa58be2..7261530e472 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index 9c0c60f266a..19a31d01043 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/entitlementmanagement/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/entitlementManagement/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/appscope/AppScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/appscope/AppScopeRequestBuilder.java index b7ea246cc58..7467c787e0d 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/appscope/AppScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/appscope/AppScopeRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public AppScope get() { return get(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AppScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index 0f26ba8ad33..1805a11e1e6 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/exchange/roleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/principal/PrincipalRequestBuilder.java index 6f2ddb5f4c7..cc48f874acc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/exchange/roleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index 855086a48f8..e242b9aa93a 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/roleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/exchange/roleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java index d4d750503b5..14ecf1e4aa3 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/appscope/AppScopeRequestBuilder.java @@ -55,7 +55,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -64,7 +64,7 @@ public AppScope get() { return get(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppScope} * @throws ODataError When receiving a 4XX or 5XX status code @@ -122,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -130,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -182,7 +182,7 @@ public AppScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. + * Read-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java index 8dc61369cb2..d281b388866 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/directoryscope/DirectoryScopeRequestBuilder.java @@ -37,7 +37,7 @@ public DirectoryScopeRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/exchange/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/directoryScope{?%24expand,%24select}", rawUrl); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DirectoryScopeRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new DirectoryScopeRequestBuilder(rawUrl, requestAdapter); } /** - * The directory object that is the scope of the assignment. Provided so that callers can get the directory object using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java index e4543ea66ee..f9b8d6c5781 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/principal/PrincipalRequestBuilder.java @@ -37,7 +37,7 @@ public PrincipalRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/roleManagement/exchange/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/principal{?%24expand,%24select}", rawUrl); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public DirectoryObject get() { return get(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public DirectoryObject get(@jakarta.annotation.Nullable final java.util.function return this.requestAdapter.send(requestInfo, errorMapping, DirectoryObject::createFromDiscriminatorValue); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public PrincipalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new PrincipalRequestBuilder(rawUrl, requestAdapter); } /** - * The assigned principal. Provided so that callers can get the principal using $expand at the same time as getting the role assignment. Read-only. Supports $expand. + * Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java index 3a4b632ddaf..bec9b8794e7 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/rolemanagement/exchange/transitiveroleassignments/item/roledefinition/RoleDefinitionRequestBuilder.java @@ -37,7 +37,7 @@ public RoleDefinitionRequestBuilder(@jakarta.annotation.Nonnull final String raw super(requestAdapter, "{+baseurl}/roleManagement/exchange/transitiveRoleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24expand,%24select}", rawUrl); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public UnifiedRoleDefinition get() { return get(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link UnifiedRoleDefinition} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public UnifiedRoleDefinition get(@jakarta.annotation.Nullable final java.util.fu return this.requestAdapter.send(requestInfo, errorMapping, UnifiedRoleDefinition::createFromDiscriminatorValue); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public RoleDefinitionRequestBuilder withUrl(@jakarta.annotation.Nonnull final St return new RoleDefinitionRequestBuilder(rawUrl, requestAdapter); } /** - * The roleDefinition the assignment is for. Provided so that callers can get the role definition using $expand at the same time as getting the role assignment. roleDefinition.id will be auto expanded. Supports $expand. + * The roleDefinition the assignment is for. Supports $expand. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 11df491f608..77944f4ab7f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..70656209638 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.serviceprincipals.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/serviceprincipals/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/restore/RestoreRequestBuilder.java index 1fd7e19dec3..9c15989e507 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/serviceprincipals/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/SiteItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/SiteItemRequestBuilder.java index 8258ca1d831..7a467e5d067 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/SiteItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/SiteItemRequestBuilder.java @@ -4,8 +4,10 @@ import com.microsoft.graph.beta.models.Site; import com.microsoft.graph.beta.sites.item.analytics.AnalyticsRequestBuilder; import com.microsoft.graph.beta.sites.item.columns.ColumnsRequestBuilder; +import com.microsoft.graph.beta.sites.item.contentmodels.ContentModelsRequestBuilder; import com.microsoft.graph.beta.sites.item.contenttypes.ContentTypesRequestBuilder; import com.microsoft.graph.beta.sites.item.createdbyuser.CreatedByUserRequestBuilder; +import com.microsoft.graph.beta.sites.item.documentprocessingjobs.DocumentProcessingJobsRequestBuilder; import com.microsoft.graph.beta.sites.item.drive.DriveRequestBuilder; import com.microsoft.graph.beta.sites.item.drives.DrivesRequestBuilder; import com.microsoft.graph.beta.sites.item.externalcolumns.ExternalColumnsRequestBuilder; @@ -57,6 +59,14 @@ public AnalyticsRequestBuilder analytics() { public ColumnsRequestBuilder columns() { return new ColumnsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the contentModels property of the microsoft.graph.site entity. + * @return a {@link ContentModelsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelsRequestBuilder contentModels() { + return new ContentModelsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. * @return a {@link ContentTypesRequestBuilder} @@ -73,6 +83,14 @@ public ContentTypesRequestBuilder contentTypes() { public CreatedByUserRequestBuilder createdByUser() { return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the documentProcessingJobs property of the microsoft.graph.site entity. + * @return a {@link DocumentProcessingJobsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobsRequestBuilder documentProcessingJobs() { + return new DocumentProcessingJobsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the drive property of the microsoft.graph.site entity. * @return a {@link DriveRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/ContentModelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/ContentModelsRequestBuilder.java new file mode 100644 index 00000000000..b878d063486 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/ContentModelsRequestBuilder.java @@ -0,0 +1,254 @@ +package com.microsoft.graph.beta.sites.item.contentmodels; + +import com.microsoft.graph.beta.models.ContentModel; +import com.microsoft.graph.beta.models.ContentModelCollectionResponse; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.sites.item.contentmodels.count.CountRequestBuilder; +import com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.GetByNameWithModelNameRequestBuilder; +import com.microsoft.graph.beta.sites.item.contentmodels.item.ContentModelItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the contentModels property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContentModelsRequestBuilder 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 contentModels property of the microsoft.graph.site entity. + * @param contentModelId The unique identifier of contentModel + * @return a {@link ContentModelItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelItemRequestBuilder byContentModelId(@jakarta.annotation.Nonnull final String contentModelId) { + Objects.requireNonNull(contentModelId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("contentModel%2Did", contentModelId); + return new ContentModelItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link ContentModelsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ContentModelsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Read the properties and relationships of a contentModel object. + * @return a {@link ContentModelCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModelCollectionResponse get() { + return get(null); + } + /** + * Read the properties and relationships of a contentModel object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModelCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModelCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModelCollectionResponse::createFromDiscriminatorValue); + } + /** + * Provides operations to call the getByName method. + * @param modelName Usage: modelName='{modelName}' + * @return a {@link GetByNameWithModelNameRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetByNameWithModelNameRequestBuilder getByNameWithModelName(@jakarta.annotation.Nonnull final String modelName) { + Objects.requireNonNull(modelName); + return new GetByNameWithModelNameRequestBuilder(pathParameters, requestAdapter, modelName); + } + /** + * Create new navigation property to contentModels for sites + * @param body The request body + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel post(@jakarta.annotation.Nonnull final ContentModel body) { + return post(body, null); + } + /** + * Create new navigation property to contentModels for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel post(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * Read the properties and relationships of a contentModel object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a contentModel object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to contentModels for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentModel body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to contentModels for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ContentModelsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ContentModelsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Read the properties and relationships of a contentModel object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/count/CountRequestBuilder.java new file mode 100644 index 00000000000..2d6558b734d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.count; + +import com.microsoft.graph.beta.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}/sites/{site%2Did}/contentModels/$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}/sites/{site%2Did}/contentModels/$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/beta/generated/sites/item/contentmodels/getbynamewithmodelname/GetByNameWithModelNameRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/GetByNameWithModelNameRequestBuilder.java new file mode 100644 index 00000000000..6b85708057f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/GetByNameWithModelNameRequestBuilder.java @@ -0,0 +1,127 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname; + +import com.microsoft.graph.beta.models.ContentModel; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.addtodrive.AddToDriveRequestBuilder; +import com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.getapplieddrives.GetAppliedDrivesRequestBuilder; +import com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.removefromdrive.RemoveFromDriveRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the getByName method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetByNameWithModelNameRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the addToDrive method. + * @return a {@link AddToDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddToDriveRequestBuilder addToDrive() { + return new AddToDriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the getAppliedDrives method. + * @return a {@link GetAppliedDrivesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAppliedDrivesRequestBuilder getAppliedDrives() { + return new GetAppliedDrivesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the removeFromDrive method. + * @return a {@link RemoveFromDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveFromDriveRequestBuilder removeFromDrive() { + return new RemoveFromDriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link GetByNameWithModelNameRequestBuilder} and sets the default values. + * @param modelName Usage: modelName='{modelName}' + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetByNameWithModelNameRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String modelName) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')", pathParameters); + this.pathParameters.put("modelName", modelName); + } + /** + * Instantiates a new {@link GetByNameWithModelNameRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetByNameWithModelNameRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')", rawUrl); + } + /** + * Read the properties and relationships of a contentModel object by its model name. The name should be the full model filename, including the file extension; for example, exampleModel.classifier. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModel get() { + return get(null); + } + /** + * Read the properties and relationships of a contentModel object by its model name. The name should be the full model filename, including the file extension; for example, exampleModel.classifier. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModel get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * Read the properties and relationships of a contentModel object by its model name. The name should be the full model filename, including the file extension; for example, exampleModel.classifier. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a contentModel object by its model name. The name should be the full model filename, including the file extension; for example, exampleModel.classifier. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation 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 GetByNameWithModelNameRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetByNameWithModelNameRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetByNameWithModelNameRequestBuilder(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/beta/generated/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDrivePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDrivePostRequestBody.java new file mode 100644 index 00000000000..906107fa6e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDrivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.addtodrive; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddToDrivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AddToDrivePostRequestBody} and sets the default values. + */ + public AddToDrivePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AddToDrivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static AddToDrivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AddToDrivePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the driveId property value. The driveId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("driveId", (n) -> { this.setDriveId(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("driveId", this.getDriveId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the driveId property value. The driveId property + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDriveRequestBuilder.java new file mode 100644 index 00000000000..cde6679b6e9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/addtodrive/AddToDriveRequestBuilder.java @@ -0,0 +1,105 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.addtodrive; + +import com.microsoft.graph.beta.models.ContentModelUsage; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the addToDrive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddToDriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AddToDriveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddToDriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/addToDrive", pathParameters); + } + /** + * Instantiates a new {@link AddToDriveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddToDriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/addToDrive", rawUrl); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @return a {@link ContentModelUsage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModelUsage post(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body) { + return post(body, null); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModelUsage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModelUsage post(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModelUsage::createFromDiscriminatorValue); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AddToDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddToDriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AddToDriveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesGetResponse.java new file mode 100644 index 00000000000..e29e84c94fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.getapplieddrives; + +import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.beta.models.ContentModelUsage; +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 GetAppliedDrivesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAppliedDrivesGetResponse} and sets the default values. + */ + public GetAppliedDrivesGetResponse() { + 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 GetAppliedDrivesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAppliedDrivesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAppliedDrivesGetResponse(); + } + /** + * 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(ContentModelUsage::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/beta/generated/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesRequestBuilder.java new file mode 100644 index 00000000000..a996f6370ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/getapplieddrives/GetAppliedDrivesRequestBuilder.java @@ -0,0 +1,148 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.getapplieddrives; + +import com.microsoft.graph.beta.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 getAppliedDrives method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAppliedDrivesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAppliedDrivesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAppliedDrivesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/getAppliedDrives(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAppliedDrivesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAppliedDrivesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/getAppliedDrives(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @return a {@link GetAppliedDrivesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetAppliedDrivesGetResponse get() { + return get(null); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAppliedDrivesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetAppliedDrivesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAppliedDrivesGetResponse::createFromDiscriminatorValue); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 GetAppliedDrivesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAppliedDrivesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAppliedDrivesRequestBuilder(rawUrl, requestAdapter); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + */ + @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; + /** + * 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); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/beta/generated/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDrivePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDrivePostRequestBody.java new file mode 100644 index 00000000000..d529ea9fc31 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDrivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.removefromdrive; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveFromDrivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link RemoveFromDrivePostRequestBody} and sets the default values. + */ + public RemoveFromDrivePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RemoveFromDrivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static RemoveFromDrivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RemoveFromDrivePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the driveId property value. The driveId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("driveId", (n) -> { this.setDriveId(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("driveId", this.getDriveId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the driveId property value. The driveId property + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDriveRequestBuilder.java new file mode 100644 index 00000000000..76acd059368 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/getbynamewithmodelname/removefromdrive/RemoveFromDriveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.getbynamewithmodelname.removefromdrive; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the removeFromDrive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveFromDriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RemoveFromDriveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveFromDriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/removeFromDrive", pathParameters); + } + /** + * Instantiates a new {@link RemoveFromDriveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveFromDriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/getByName(modelName='{modelName}')/removeFromDrive", rawUrl); + } + /** + * Remove a contentModel from a SharePoint document library. + * @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 RemoveFromDrivePostRequestBody body) { + post(body, null); + } + /** + * Remove a contentModel from a SharePoint document library. + * @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 RemoveFromDrivePostRequestBody body, @jakarta.annotation.Nullable final 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); + } + /** + * Remove a contentModel from a SharePoint document library. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoveFromDrivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Remove a contentModel from a SharePoint document library. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoveFromDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RemoveFromDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveFromDriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RemoveFromDriveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/ContentModelItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/ContentModelItemRequestBuilder.java new file mode 100644 index 00000000000..4be32ca0505 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/ContentModelItemRequestBuilder.java @@ -0,0 +1,257 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.item; + +import com.microsoft.graph.beta.models.ContentModel; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.sites.item.contentmodels.item.addtodrive.AddToDriveRequestBuilder; +import com.microsoft.graph.beta.sites.item.contentmodels.item.getapplieddrives.GetAppliedDrivesRequestBuilder; +import com.microsoft.graph.beta.sites.item.contentmodels.item.removefromdrive.RemoveFromDriveRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the contentModels property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContentModelItemRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the addToDrive method. + * @return a {@link AddToDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddToDriveRequestBuilder addToDrive() { + return new AddToDriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the getAppliedDrives method. + * @return a {@link GetAppliedDrivesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAppliedDrivesRequestBuilder getAppliedDrives() { + return new GetAppliedDrivesRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the removeFromDrive method. + * @return a {@link RemoveFromDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveFromDriveRequestBuilder removeFromDrive() { + return new RemoveFromDriveRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link ContentModelItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/{contentModel%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link ContentModelItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/{contentModel%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property contentModels for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property contentModels for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Read the properties and relationships of a contentModel object. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModel get() { + return get(null); + } + /** + * Read the properties and relationships of a contentModel object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModel get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * Update the navigation property contentModels in sites + * @param body The request body + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel patch(@jakarta.annotation.Nonnull final ContentModel body) { + return patch(body, null); + } + /** + * Update the navigation property contentModels in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel patch(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * Delete navigation property contentModels for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property contentModels for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Read the properties and relationships of a contentModel object. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Read the properties and relationships of a contentModel object. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property contentModels in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ContentModel body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property contentModels in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ContentModelItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ContentModelItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Read the properties and relationships of a contentModel object. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/addtodrive/AddToDrivePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/addtodrive/AddToDrivePostRequestBody.java new file mode 100644 index 00000000000..34716e4d3b1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/addtodrive/AddToDrivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.item.addtodrive; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddToDrivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link AddToDrivePostRequestBody} and sets the default values. + */ + public AddToDrivePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link AddToDrivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static AddToDrivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new AddToDrivePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the driveId property value. The driveId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("driveId", (n) -> { this.setDriveId(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("driveId", this.getDriveId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the driveId property value. The driveId property + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/addtodrive/AddToDriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/addtodrive/AddToDriveRequestBuilder.java new file mode 100644 index 00000000000..ae841ae8acf --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/addtodrive/AddToDriveRequestBuilder.java @@ -0,0 +1,105 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.item.addtodrive; + +import com.microsoft.graph.beta.models.ContentModelUsage; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the addToDrive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class AddToDriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link AddToDriveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddToDriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/{contentModel%2Did}/addToDrive", pathParameters); + } + /** + * Instantiates a new {@link AddToDriveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public AddToDriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/{contentModel%2Did}/addToDrive", rawUrl); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @return a {@link ContentModelUsage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModelUsage post(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body) { + return post(body, null); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModelUsage} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public ContentModelUsage post(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModelUsage::createFromDiscriminatorValue); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Apply a contentModel to SharePoint document libraries. For an existing model that's already trained, this action automatically processes new documents that are added to the SharePoint libraries. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddToDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link AddToDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public AddToDriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new AddToDriveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesGetResponse.java new file mode 100644 index 00000000000..92ba2fdb42d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.item.getapplieddrives; + +import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.beta.models.ContentModelUsage; +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 GetAppliedDrivesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link GetAppliedDrivesGetResponse} and sets the default values. + */ + public GetAppliedDrivesGetResponse() { + 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 GetAppliedDrivesGetResponse} + */ + @jakarta.annotation.Nonnull + public static GetAppliedDrivesGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new GetAppliedDrivesGetResponse(); + } + /** + * 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(ContentModelUsage::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/beta/generated/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesRequestBuilder.java new file mode 100644 index 00000000000..0a8df339cbd --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/getapplieddrives/GetAppliedDrivesRequestBuilder.java @@ -0,0 +1,148 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.item.getapplieddrives; + +import com.microsoft.graph.beta.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 getAppliedDrives method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class GetAppliedDrivesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link GetAppliedDrivesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAppliedDrivesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/{contentModel%2Did}/getAppliedDrives(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link GetAppliedDrivesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public GetAppliedDrivesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/{contentModel%2Did}/getAppliedDrives(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @return a {@link GetAppliedDrivesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetAppliedDrivesGetResponse get() { + return get(null); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link GetAppliedDrivesGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public GetAppliedDrivesGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, GetAppliedDrivesGetResponse::createFromDiscriminatorValue); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 GetAppliedDrivesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public GetAppliedDrivesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new GetAppliedDrivesRequestBuilder(rawUrl, requestAdapter); + } + /** + * List all the contentModelUsage information related to a contentModel applied to a SharePoint document library. + */ + @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; + /** + * 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); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/beta/generated/sites/item/contentmodels/item/removefromdrive/RemoveFromDrivePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/removefromdrive/RemoveFromDrivePostRequestBody.java new file mode 100644 index 00000000000..9788284281f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/removefromdrive/RemoveFromDrivePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.item.removefromdrive; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveFromDrivePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link RemoveFromDrivePostRequestBody} and sets the default values. + */ + public RemoveFromDrivePostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link RemoveFromDrivePostRequestBody} + */ + @jakarta.annotation.Nonnull + public static RemoveFromDrivePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RemoveFromDrivePostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the driveId property value. The driveId property + * @return a {@link String} + */ + @jakarta.annotation.Nullable + public String getDriveId() { + return this.backingStore.get("driveId"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("driveId", (n) -> { this.setDriveId(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("driveId", this.getDriveId()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the driveId property value. The driveId property + * @param value Value to set for the driveId property. + */ + public void setDriveId(@jakarta.annotation.Nullable final String value) { + this.backingStore.set("driveId", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/removefromdrive/RemoveFromDriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/removefromdrive/RemoveFromDriveRequestBuilder.java new file mode 100644 index 00000000000..7338db57859 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/contentmodels/item/removefromdrive/RemoveFromDriveRequestBuilder.java @@ -0,0 +1,100 @@ +package com.microsoft.graph.beta.sites.item.contentmodels.item.removefromdrive; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the removeFromDrive method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RemoveFromDriveRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RemoveFromDriveRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveFromDriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/{contentModel%2Did}/removeFromDrive", pathParameters); + } + /** + * Instantiates a new {@link RemoveFromDriveRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RemoveFromDriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/contentModels/{contentModel%2Did}/removeFromDrive", rawUrl); + } + /** + * Remove a contentModel from a SharePoint document library. + * @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 RemoveFromDrivePostRequestBody body) { + post(body, null); + } + /** + * Remove a contentModel from a SharePoint document library. + * @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 RemoveFromDrivePostRequestBody body, @jakarta.annotation.Nullable final 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); + } + /** + * Remove a contentModel from a SharePoint document library. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoveFromDrivePostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Remove a contentModel from a SharePoint document library. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RemoveFromDrivePostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link RemoveFromDriveRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RemoveFromDriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RemoveFromDriveRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java new file mode 100644 index 00000000000..f0becde6982 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java @@ -0,0 +1,245 @@ +package com.microsoft.graph.beta.sites.item.documentprocessingjobs; + +import com.microsoft.graph.beta.models.DocumentProcessingJob; +import com.microsoft.graph.beta.models.DocumentProcessingJobCollectionResponse; +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.sites.item.documentprocessingjobs.count.CountRequestBuilder; +import com.microsoft.graph.beta.sites.item.documentprocessingjobs.item.DocumentProcessingJobItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the documentProcessingJobs property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DocumentProcessingJobsRequestBuilder 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 documentProcessingJobs property of the microsoft.graph.site entity. + * @param documentProcessingJobId The unique identifier of documentProcessingJob + * @return a {@link DocumentProcessingJobItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobItemRequestBuilder byDocumentProcessingJobId(@jakarta.annotation.Nonnull final String documentProcessingJobId) { + Objects.requireNonNull(documentProcessingJobId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("documentProcessingJob%2Did", documentProcessingJobId); + return new DocumentProcessingJobItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link DocumentProcessingJobsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/documentProcessingJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link DocumentProcessingJobsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/documentProcessingJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The document processing jobs running on this site. + * @return a {@link DocumentProcessingJobCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobCollectionResponse get() { + return get(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJobCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJobCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a new documentProcessingJob object. The document processing job queues a document, or all documents in a folder, for processing by the applied content models. + * @param body The request body + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob post(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return post(body, null); + } + /** + * Create a new documentProcessingJob object. The document processing job queues a document, or all documents in a folder, for processing by the applied content models. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob post(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJob::createFromDiscriminatorValue); + } + /** + * The document processing jobs running on this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a new documentProcessingJob object. The document processing job queues a document, or all documents in a folder, for processing by the applied content models. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return toPostRequestInformation(body, null); + } + /** + * Create a new documentProcessingJob object. The document processing job queues a document, or all documents in a folder, for processing by the applied content models. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link DocumentProcessingJobsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DocumentProcessingJobsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The document processing jobs running on this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/documentprocessingjobs/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/documentprocessingjobs/count/CountRequestBuilder.java new file mode 100644 index 00000000000..188a3b91e9d --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/documentprocessingjobs/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.beta.sites.item.documentprocessingjobs.count; + +import com.microsoft.graph.beta.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}/sites/{site%2Did}/documentProcessingJobs/$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}/sites/{site%2Did}/documentProcessingJobs/$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/beta/generated/sites/item/documentprocessingjobs/item/DocumentProcessingJobItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/documentprocessingjobs/item/DocumentProcessingJobItemRequestBuilder.java new file mode 100644 index 00000000000..cd920a30a28 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/documentprocessingjobs/item/DocumentProcessingJobItemRequestBuilder.java @@ -0,0 +1,228 @@ +package com.microsoft.graph.beta.sites.item.documentprocessingjobs.item; + +import com.microsoft.graph.beta.models.DocumentProcessingJob; +import com.microsoft.graph.beta.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 documentProcessingJobs property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DocumentProcessingJobItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link DocumentProcessingJobItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/documentProcessingJobs/{documentProcessingJob%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link DocumentProcessingJobItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/documentProcessingJobs/{documentProcessingJob%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property documentProcessingJobs for sites + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property documentProcessingJobs for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * The document processing jobs running on this site. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob get() { + return get(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJob::createFromDiscriminatorValue); + } + /** + * Update the navigation property documentProcessingJobs in sites + * @param body The request body + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob patch(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return patch(body, null); + } + /** + * Update the navigation property documentProcessingJobs in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob patch(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJob::createFromDiscriminatorValue); + } + /** + * Delete navigation property documentProcessingJobs for sites + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property documentProcessingJobs for sites + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * The document processing jobs running on this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property documentProcessingJobs in sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property documentProcessingJobs in sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link DocumentProcessingJobItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DocumentProcessingJobItemRequestBuilder(rawUrl, 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 document processing jobs running on this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java index 5caffda208f..45c8396d112 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/GetByPathWithPathRequestBuilder.java @@ -4,14 +4,15 @@ import com.microsoft.graph.beta.models.Site; import com.microsoft.graph.beta.sites.item.getbypathwithpath.analytics.AnalyticsRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.columns.ColumnsRequestBuilder; +import com.microsoft.graph.beta.sites.item.getbypathwithpath.contentmodels.ContentModelsRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.contenttypes.ContentTypesRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.createdbyuser.CreatedByUserRequestBuilder; +import com.microsoft.graph.beta.sites.item.getbypathwithpath.documentprocessingjobs.DocumentProcessingJobsRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.drive.DriveRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.drives.DrivesRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.externalcolumns.ExternalColumnsRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.getapplicablecontenttypesforlistwithlistid.GetApplicableContentTypesForListWithListIdRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.GetByPathWithPath1RequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.informationprotection.InformationProtectionRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.items.ItemsRequestBuilder; import com.microsoft.graph.beta.sites.item.getbypathwithpath.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; @@ -56,6 +57,14 @@ public AnalyticsRequestBuilder analytics() { public ColumnsRequestBuilder columns() { return new ColumnsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the contentModels property of the microsoft.graph.site entity. + * @return a {@link ContentModelsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelsRequestBuilder contentModels() { + return new ContentModelsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. * @return a {@link ContentTypesRequestBuilder} @@ -72,6 +81,14 @@ public ContentTypesRequestBuilder contentTypes() { public CreatedByUserRequestBuilder createdByUser() { return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the documentProcessingJobs property of the microsoft.graph.site entity. + * @return a {@link DocumentProcessingJobsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobsRequestBuilder documentProcessingJobs() { + return new DocumentProcessingJobsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the drive property of the microsoft.graph.site entity. * @return a {@link DriveRequestBuilder} @@ -248,16 +265,6 @@ public GetApplicableContentTypesForListWithListIdRequestBuilder getApplicableCon Objects.requireNonNull(listId); return new GetApplicableContentTypesForListWithListIdRequestBuilder(pathParameters, requestAdapter, listId); } - /** - * Provides operations to call the getByPath method. - * @param path1 Usage: path='{path1}' - * @return a {@link GetByPathWithPath1RequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetByPathWithPath1RequestBuilder getByPathWithPath1(@jakarta.annotation.Nonnull final String path1) { - Objects.requireNonNull(path1); - return new GetByPathWithPath1RequestBuilder(pathParameters, requestAdapter, path1); - } /** * Invoke function getByPath * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/contentmodels/ContentModelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/contentmodels/ContentModelsRequestBuilder.java new file mode 100644 index 00000000000..44ac1857717 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/contentmodels/ContentModelsRequestBuilder.java @@ -0,0 +1,221 @@ +package com.microsoft.graph.beta.sites.item.getbypathwithpath.contentmodels; + +import com.microsoft.graph.beta.models.ContentModel; +import com.microsoft.graph.beta.models.ContentModelCollectionResponse; +import com.microsoft.graph.beta.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 contentModels property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ContentModelsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ContentModelsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/contentModels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link ContentModelsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ContentModelsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/contentModels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The collection of content models applied to this site. + * @return a {@link ContentModelCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModelCollectionResponse get() { + return get(null); + } + /** + * The collection of content models applied to this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModelCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModelCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModelCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to contentModels for sites + * @param body The request body + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel post(@jakarta.annotation.Nonnull final ContentModel body) { + return post(body, null); + } + /** + * Create new navigation property to contentModels for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link ContentModel} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public ContentModel post(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, ContentModel::createFromDiscriminatorValue); + } + /** + * The collection of content models applied to this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The collection of content models applied to this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to contentModels for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentModel body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to contentModels for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentModel body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ContentModelsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ContentModelsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ContentModelsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The collection of content models applied to this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java new file mode 100644 index 00000000000..ce2857ec908 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/documentprocessingjobs/DocumentProcessingJobsRequestBuilder.java @@ -0,0 +1,221 @@ +package com.microsoft.graph.beta.sites.item.getbypathwithpath.documentprocessingjobs; + +import com.microsoft.graph.beta.models.DocumentProcessingJob; +import com.microsoft.graph.beta.models.DocumentProcessingJobCollectionResponse; +import com.microsoft.graph.beta.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 documentProcessingJobs property of the microsoft.graph.site entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class DocumentProcessingJobsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link DocumentProcessingJobsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/documentProcessingJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link DocumentProcessingJobsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public DocumentProcessingJobsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/documentProcessingJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * The document processing jobs running on this site. + * @return a {@link DocumentProcessingJobCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobCollectionResponse get() { + return get(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJobCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJobCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJobCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create new navigation property to documentProcessingJobs for sites + * @param body The request body + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob post(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return post(body, null); + } + /** + * Create new navigation property to documentProcessingJobs for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link DocumentProcessingJob} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public DocumentProcessingJob post(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, DocumentProcessingJob::createFromDiscriminatorValue); + } + /** + * The document processing jobs running on this site. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * The document processing jobs running on this site. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create new navigation property to documentProcessingJobs for sites + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body) { + return toPostRequestInformation(body, null); + } + /** + * Create new navigation property to documentProcessingJobs for sites + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final DocumentProcessingJob body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link DocumentProcessingJobsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public DocumentProcessingJobsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new DocumentProcessingJobsRequestBuilder(rawUrl, requestAdapter); + } + /** + * The document processing jobs running on this site. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java deleted file mode 100644 index d3c15392b60..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/GetByPathWithPath1RequestBuilder.java +++ /dev/null @@ -1,260 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Site; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.contenttypes.ContentTypesRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.drive.DriveRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.drives.DrivesRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.externalcolumns.ExternalColumnsRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.informationprotection.InformationProtectionRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.items.ItemsRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.lists.ListsRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.onenote.OnenoteRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.operations.OperationsRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.pages.PagesRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.recyclebin.RecycleBinRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.sites.SitesRequestBuilder; -import com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.termstore.TermStoreRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to call the getByPath method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetByPathWithPath1RequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the analytics property of the microsoft.graph.site entity. - * @return a {@link AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder analytics() { - return new AnalyticsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the columns property of the microsoft.graph.site entity. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder columns() { - return new ColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - * @return a {@link ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder contentTypes() { - return new ContentTypesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder createdByUser() { - return new CreatedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the drive property of the microsoft.graph.site entity. - * @return a {@link DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder drive() { - return new DriveRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the drives property of the microsoft.graph.site entity. - * @return a {@link DrivesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DrivesRequestBuilder drives() { - return new DrivesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - * @return a {@link ExternalColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExternalColumnsRequestBuilder externalColumns() { - return new ExternalColumnsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the informationProtection property of the microsoft.graph.site entity. - * @return a {@link InformationProtectionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InformationProtectionRequestBuilder informationProtection() { - return new InformationProtectionRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the items property of the microsoft.graph.site entity. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder items() { - return new ItemsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder lastModifiedByUser() { - return new LastModifiedByUserRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the lists property of the microsoft.graph.site entity. - * @return a {@link ListsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListsRequestBuilder lists() { - return new ListsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the onenote property of the microsoft.graph.site entity. - * @return a {@link OnenoteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OnenoteRequestBuilder onenote() { - return new OnenoteRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the operations property of the microsoft.graph.site entity. - * @return a {@link OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder operations() { - return new OperationsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the pages property of the microsoft.graph.site entity. - * @return a {@link PagesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PagesRequestBuilder pages() { - return new PagesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the permissions property of the microsoft.graph.site entity. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder permissions() { - return new PermissionsRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the recycleBin property of the microsoft.graph.site entity. - * @return a {@link RecycleBinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RecycleBinRequestBuilder recycleBin() { - return new RecycleBinRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the sites property of the microsoft.graph.site entity. - * @return a {@link SitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SitesRequestBuilder sites() { - return new SitesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the termStore property of the microsoft.graph.site entity. - * @return a {@link TermStoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoreRequestBuilder termStore() { - return new TermStoreRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link GetByPathWithPath1RequestBuilder} and sets the default values. - * @param path1 Usage: path='{path1}' - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetByPathWithPath1RequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter, @jakarta.annotation.Nullable final String path1) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", pathParameters); - this.pathParameters.put("path1", path1); - } - /** - * Instantiates a new {@link GetByPathWithPath1RequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetByPathWithPath1RequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", rawUrl); - } - /** - * Invoke function getByPath - * @return a {@link Site} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Site get() { - return get(null); - } - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Site} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Site get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Site::createFromDiscriminatorValue); - } - /** - * Invoke function getByPath - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function getByPath - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link GetByPathWithPath1RequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetByPathWithPath1RequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetByPathWithPath1RequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index 78b15ea63e9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.analytics; - -import com.microsoft.graph.beta.models.ItemAnalytics; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the analytics property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AnalyticsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AnalyticsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link AnalyticsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AnalyticsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property analytics for sites - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property analytics for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Analytics about the view activities that took place on this site. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get() { - return get(null); - } - /** - * Analytics about the view activities that took place on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Update the navigation property analytics in sites - * @param body The request body - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return patch(body, null); - } - /** - * Update the navigation property analytics in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemAnalytics} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemAnalytics patch(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemAnalytics::createFromDiscriminatorValue); - } - /** - * Delete navigation property analytics for sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property analytics for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Analytics about the view activities that took place on this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Analytics about the view activities that took place on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property analytics in sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property analytics in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemAnalytics body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link AnalyticsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public AnalyticsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new AnalyticsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Analytics about the view activities that took place on this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 8ade058e3df..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.columns; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the columns property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ColumnsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of column definitions reusable across lists under this site. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to columns for sites - * @param body The request body - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return post(body, null); - } - /** - * Create new navigation property to columns for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinition} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinition post(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinition::createFromDiscriminatorValue); - } - /** - * The collection of column definitions reusable across lists under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of column definitions reusable across lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to columns for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to columns for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ColumnDefinition body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of column definitions reusable across lists under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java deleted file mode 100644 index 95c5d50b154..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/contenttypes/ContentTypesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.contenttypes; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.ContentTypeCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the contentTypes property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ContentTypesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentTypesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ContentTypesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentTypesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of content types defined for this site. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get() { - return get(null); - } - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentTypeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentTypeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentTypeCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body) { - return post(body, null); - } - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ContentType} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ContentType post(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ContentType::createFromDiscriminatorValue); - } - /** - * The collection of content types defined for this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of content types defined for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to contentTypes for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ContentType body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ContentTypesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentTypesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentTypesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of content types defined for this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index 02d0f97ec24..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CreatedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CreatedByUserRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CreatedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get createdByUser from sites - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from sites - * @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); - } - /** - * Get createdByUser from sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser from sites - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and 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/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java deleted file mode 100644 index 245d47923eb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/drive/DriveRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.drive; - -import com.microsoft.graph.beta.models.Drive; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the drive property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DriveRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DriveRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link DriveRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DriveRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", rawUrl); - } - /** - * The default drive (document library) for this site. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get() { - return get(null); - } - /** - * The default drive (document library) for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); - } - /** - * The default drive (document library) for this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The default drive (document library) for this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link DriveRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveRequestBuilder(rawUrl, requestAdapter); - } - /** - * The default drive (document library) for this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java deleted file mode 100644 index 7be2c373baa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/drives/DrivesRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.drives; - -import com.microsoft.graph.beta.models.DriveCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the drives property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DrivesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link DrivesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DrivesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link DrivesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public DrivesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of drives (document libraries) under this site. - * @return a {@link DriveCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveCollectionResponse get() { - return get(null); - } - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link DriveCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, DriveCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of drives (document libraries) under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of drives (document libraries) under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link DrivesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DrivesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DrivesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of drives (document libraries) under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java deleted file mode 100644 index e9280993d44..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/externalcolumns/ExternalColumnsRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.externalcolumns; - -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the externalColumns property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExternalColumnsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ExternalColumnsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExternalColumnsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ExternalColumnsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ExternalColumnsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get() { - return get(null); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ColumnDefinitionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ColumnDefinitionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ColumnDefinitionCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ExternalColumnsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ExternalColumnsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ExternalColumnsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of column definitions available in the site that is referenced from the sites in the parent hierarchy of the current site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/informationprotection/InformationProtectionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/informationprotection/InformationProtectionRequestBuilder.java deleted file mode 100644 index 24e9e7f41c2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/informationprotection/InformationProtectionRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.informationprotection; - -import com.microsoft.graph.beta.models.InformationProtection; -import com.microsoft.graph.beta.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 informationProtection property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class InformationProtectionRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link InformationProtectionRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public InformationProtectionRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/informationProtection{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link InformationProtectionRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public InformationProtectionRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/informationProtection{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property informationProtection for sites - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property informationProtection for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get informationProtection from sites - * @return a {@link InformationProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InformationProtection get() { - return get(null); - } - /** - * Get informationProtection from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InformationProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InformationProtection get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, InformationProtection::createFromDiscriminatorValue); - } - /** - * Update the navigation property informationProtection in sites - * @param body The request body - * @return a {@link InformationProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InformationProtection patch(@jakarta.annotation.Nonnull final InformationProtection body) { - return patch(body, null); - } - /** - * Update the navigation property informationProtection in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link InformationProtection} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InformationProtection patch(@jakarta.annotation.Nonnull final InformationProtection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, InformationProtection::createFromDiscriminatorValue); - } - /** - * Delete navigation property informationProtection for sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property informationProtection for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get informationProtection from sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get informationProtection from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property informationProtection in sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final InformationProtection body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property informationProtection in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final InformationProtection body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link InformationProtectionRequestBuilder} - */ - @jakarta.annotation.Nonnull - public InformationProtectionRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new InformationProtectionRequestBuilder(rawUrl, 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 informationProtection from sites - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java deleted file mode 100644 index 97a7bf66507..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.items; - -import com.microsoft.graph.beta.models.BaseItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the items property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @return a {@link BaseItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseItemCollectionResponse get() { - return get(null); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Used to address any item contained in this site. This collection can't be enumerated. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index d0f80f0eb05..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LastModifiedByUserRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link LastModifiedByUserRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public LastModifiedByUserRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get lastModifiedByUser from sites - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from sites - * @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); - } - /** - * Get lastModifiedByUser from sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser from sites - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and 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/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java deleted file mode 100644 index 21742986748..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/lists/ListsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.lists; - -import com.microsoft.graph.beta.models.List; -import com.microsoft.graph.beta.models.ListCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the lists property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ListsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ListsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ListsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ListsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of lists under this site. - * @return a {@link ListCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListCollectionResponse get() { - return get(null); - } - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to lists for sites - * @param body The request body - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List post(@jakarta.annotation.Nonnull final List body) { - return post(body, null); - } - /** - * Create new navigation property to lists for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link List} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public List post(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, List::createFromDiscriminatorValue); - } - /** - * The collection of lists under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of lists under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to lists for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final List body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to lists for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final List body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ListsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of lists under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java deleted file mode 100644 index be5b64a3fba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/onenote/OnenoteRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.onenote; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Onenote; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the onenote property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OnenoteRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OnenoteRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OnenoteRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link OnenoteRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OnenoteRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property onenote for sites - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property onenote for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Get onenote from sites - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote get() { - return get(null); - } - /** - * Get onenote from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Onenote::createFromDiscriminatorValue); - } - /** - * Update the navigation property onenote in sites - * @param body The request body - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote patch(@jakarta.annotation.Nonnull final Onenote body) { - return patch(body, null); - } - /** - * Update the navigation property onenote in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Onenote} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Onenote patch(@jakarta.annotation.Nonnull final Onenote body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Onenote::createFromDiscriminatorValue); - } - /** - * Delete navigation property onenote for sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property onenote for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Get onenote from sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get onenote from sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property onenote in sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Onenote body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property onenote in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Onenote body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link OnenoteRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OnenoteRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OnenoteRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * Get onenote from sites - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java deleted file mode 100644 index e9f0dc64c54..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.operations; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.RichLongRunningOperation; -import com.microsoft.graph.beta.models.RichLongRunningOperationCollectionResponse; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the operations property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OperationsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of long running operations for the site. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get() { - return get(null); - } - /** - * The collection of long running operations for the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperationCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperationCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperationCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to operations for sites - * @param body The request body - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return post(body, null); - } - /** - * Create new navigation property to operations for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RichLongRunningOperation} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RichLongRunningOperation post(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RichLongRunningOperation::createFromDiscriminatorValue); - } - /** - * The collection of long running operations for the site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of long running operations for the site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to operations for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to operations for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RichLongRunningOperation body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link OperationsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public OperationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new OperationsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of long running operations for the site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java deleted file mode 100644 index 879bb942c4d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/pages/PagesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.pages; - -import com.microsoft.graph.beta.models.BaseSitePage; -import com.microsoft.graph.beta.models.BaseSitePageCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the pages property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PagesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PagesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PagesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PagesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PagesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of pages in the baseSitePages list on this site. - * @return a {@link BaseSitePageCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePageCollectionResponse get() { - return get(null); - } - /** - * The collection of pages in the baseSitePages list on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseSitePageCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePageCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePageCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to pages for sites - * @param body The request body - * @return a {@link BaseSitePage} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body) { - return post(body, null); - } - /** - * Create new navigation property to pages for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link BaseSitePage} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public BaseSitePage post(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, BaseSitePage::createFromDiscriminatorValue); - } - /** - * The collection of pages in the baseSitePages list on this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of pages in the baseSitePages list on this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to pages for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to pages for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final BaseSitePage body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link PagesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PagesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PagesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of pages in the baseSitePages list on this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index fa080947f38..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.permissions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.models.PermissionCollectionResponse; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the permissions property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermissionsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link PermissionsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermissionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link PermissionsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public PermissionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The permissions associated with the site. Nullable. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get() { - return get(null); - } - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link PermissionCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public PermissionCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, PermissionCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body) { - return post(body, null); - } - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Permission} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Permission post(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Permission::createFromDiscriminatorValue); - } - /** - * The permissions associated with the site. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The permissions associated with the site. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to permissions for sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final Permission body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new PermissionsRequestBuilder(rawUrl, requestAdapter); - } - /** - * The permissions associated with the site. Nullable. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/recyclebin/RecycleBinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/recyclebin/RecycleBinRequestBuilder.java deleted file mode 100644 index c52a94a441a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/recyclebin/RecycleBinRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.recyclebin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.RecycleBin; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the recycleBin property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RecycleBinRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RecycleBinRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RecycleBinRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/recycleBin{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link RecycleBinRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RecycleBinRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/recycleBin{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property recycleBin for sites - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property recycleBin for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * A container for a collection of recycleBinItem resources in this site. - * @return a {@link RecycleBin} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RecycleBin get() { - return get(null); - } - /** - * A container for a collection of recycleBinItem resources in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RecycleBin} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RecycleBin get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RecycleBin::createFromDiscriminatorValue); - } - /** - * Update the navigation property recycleBin in sites - * @param body The request body - * @return a {@link RecycleBin} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RecycleBin patch(@jakarta.annotation.Nonnull final RecycleBin body) { - return patch(body, null); - } - /** - * Update the navigation property recycleBin in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RecycleBin} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public RecycleBin patch(@jakarta.annotation.Nonnull final RecycleBin body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, RecycleBin::createFromDiscriminatorValue); - } - /** - * Delete navigation property recycleBin for sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property recycleBin for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * A container for a collection of recycleBinItem resources in this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A container for a collection of recycleBinItem resources in this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property recycleBin in sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final RecycleBin body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property recycleBin in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final RecycleBin body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RecycleBinRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RecycleBinRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RecycleBinRequestBuilder(rawUrl, 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 container for a collection of recycleBinItem resources in this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java deleted file mode 100644 index 4f7fbc3632b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/sites/SitesRequestBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.sites; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.SiteCollectionResponse; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the sites property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SitesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link SitesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SitesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link SitesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public SitesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The collection of the sub-sites under this site. - * @return a {@link SiteCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SiteCollectionResponse get() { - return get(null); - } - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link SiteCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public SiteCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, SiteCollectionResponse::createFromDiscriminatorValue); - } - /** - * The collection of the sub-sites under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The collection of the sub-sites under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link SitesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SitesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new SitesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The collection of the sub-sites under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java deleted file mode 100644 index 1a33c10c766..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/getbypathwithpath/getbypathwithpath1/termstore/TermStoreRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.sites.item.getbypathwithpath.getbypathwithpath1.termstore; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.termstore.Store; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the termStore property of the microsoft.graph.site entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TermStoreRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link TermStoreRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TermStoreRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TermStoreRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TermStoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property termStore for sites - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property termStore for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * The termStore under this site. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store get() { - return get(null); - } - /** - * The termStore under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * Update the navigation property termStore in sites - * @param body The request body - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store patch(@jakarta.annotation.Nonnull final Store body) { - return patch(body, null); - } - /** - * Update the navigation property termStore in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Store} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Store patch(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Store::createFromDiscriminatorValue); - } - /** - * Delete navigation property termStore for sites - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property termStore for sites - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * The termStore under this site. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The termStore under this site. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property termStore in sites - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Store body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property termStore in sites - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Store body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TermStoreRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TermStoreRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TermStoreRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } - /** - * The termStore under this site. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/sites/item/lists/item/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/sites/item/lists/item/ListItemRequestBuilder.java index 56e9d207d6b..420074a7904 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/sites/item/lists/item/ListItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/sites/item/lists/item/ListItemRequestBuilder.java @@ -145,21 +145,21 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get the list of richLongRunningOperations associated with a list. + * Return the metadata for a list. * @return a {@link List} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public List get() { return get(null); } /** - * Get the list of richLongRunningOperations associated with a list. + * Return the metadata for a list. * @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 - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public List get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -214,7 +214,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get the list of richLongRunningOperations associated with a list. + * Return the metadata for a list. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -222,7 +222,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get the list of richLongRunningOperations associated with a list. + * Return the metadata for a list. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -274,7 +274,7 @@ public ListItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get the list of richLongRunningOperations associated with a list. + * Return the metadata for a list. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/solutions/backuprestore/sharepointprotectionpolicies/item/SharePointProtectionPolicyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/backuprestore/sharepointprotectionpolicies/item/SharePointProtectionPolicyItemRequestBuilder.java index fb9150a438f..d1054998241 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/solutions/backuprestore/sharepointprotectionpolicies/item/SharePointProtectionPolicyItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/backuprestore/sharepointprotectionpolicies/item/SharePointProtectionPolicyItemRequestBuilder.java @@ -95,7 +95,7 @@ public SharePointProtectionPolicy get(@jakarta.annotation.Nullable final java.ut return this.requestAdapter.send(requestInfo, errorMapping, SharePointProtectionPolicy::createFromDiscriminatorValue); } /** - * Update a SharePoint protection policy. This method adds a sharepointprotectionunit to or removes it from the protection policy. + * Update a SharePoint protection policy. This method adds a siteprotectionunit to or removes it from the protection policy. * @param body The request body * @return a {@link SharePointProtectionPolicy} * @throws ODataError When receiving a 4XX or 5XX status code @@ -106,7 +106,7 @@ public SharePointProtectionPolicy patch(@jakarta.annotation.Nonnull final ShareP return patch(body, null); } /** - * Update a SharePoint protection policy. This method adds a sharepointprotectionunit to or removes it from the protection policy. + * Update a SharePoint protection policy. This method adds a siteprotectionunit to or removes it from the protection policy. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link SharePointProtectionPolicy} @@ -162,7 +162,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update a SharePoint protection policy. This method adds a sharepointprotectionunit to or removes it from the protection policy. + * Update a SharePoint protection policy. This method adds a siteprotectionunit to or removes it from the protection policy. * @param body The request body * @return a {@link RequestInformation} */ @@ -171,7 +171,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update a SharePoint protection policy. This method adds a sharepointprotectionunit to or removes it from the protection policy. + * Update a SharePoint protection policy. This method adds a siteprotectionunit to or removes it from the protection policy. * @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/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/PlanConfigurationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/PlanConfigurationRequestBuilder.java index fa44810431f..a62e8ef98cb 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/PlanConfigurationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/PlanConfigurationRequestBuilder.java @@ -88,7 +88,7 @@ public PlannerPlanConfiguration get(@jakarta.annotation.Nullable final java.util return this.requestAdapter.send(requestInfo, errorMapping, PlannerPlanConfiguration::createFromDiscriminatorValue); } /** - * Update the properties of a plannerPlanConfiguration object for a businessScenario. + * Update the properties of a plannerPlanConfiguration object and its plannerPlanConfigurationLocalization collection for a businessScenario. * @param body The request body * @return a {@link PlannerPlanConfiguration} * @throws ODataError When receiving a 4XX or 5XX status code @@ -99,7 +99,7 @@ public PlannerPlanConfiguration patch(@jakarta.annotation.Nonnull final PlannerP return patch(body, null); } /** - * Update the properties of a plannerPlanConfiguration object for a businessScenario. + * Update the properties of a plannerPlanConfiguration object and its plannerPlanConfigurationLocalization collection for a businessScenario. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PlannerPlanConfiguration} @@ -155,7 +155,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a plannerPlanConfiguration object for a businessScenario. + * Update the properties of a plannerPlanConfiguration object and its plannerPlanConfigurationLocalization collection for a businessScenario. * @param body The request body * @return a {@link RequestInformation} */ @@ -164,7 +164,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a plannerPlanConfiguration object for a businessScenario. + * Update the properties of a plannerPlanConfiguration object and its plannerPlanConfigurationLocalization collection for a businessScenario. * @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/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/localizations/LocalizationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/localizations/LocalizationsRequestBuilder.java index fe4f6aec9c9..add3b9a8671 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/localizations/LocalizationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/localizations/LocalizationsRequestBuilder.java @@ -84,23 +84,21 @@ public PlannerPlanConfigurationLocalizationCollectionResponse get(@jakarta.annot return this.requestAdapter.send(requestInfo, errorMapping, PlannerPlanConfigurationLocalizationCollectionResponse::createFromDiscriminatorValue); } /** - * Create a new plannerPlanConfigurationLocalization object. + * Create new navigation property to localizations for solutions * @param body The request body * @return a {@link PlannerPlanConfigurationLocalization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public PlannerPlanConfigurationLocalization post(@jakarta.annotation.Nonnull final PlannerPlanConfigurationLocalization body) { return post(body, null); } /** - * Create a new plannerPlanConfigurationLocalization object. + * Create new navigation property to localizations for solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PlannerPlanConfigurationLocalization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public PlannerPlanConfigurationLocalization post(@jakarta.annotation.Nonnull final PlannerPlanConfigurationLocalization body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -131,7 +129,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Create a new plannerPlanConfigurationLocalization object. + * Create new navigation property to localizations for solutions * @param body The request body * @return a {@link RequestInformation} */ @@ -140,7 +138,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Create a new plannerPlanConfigurationLocalization object. + * Create new navigation property to localizations for solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/localizations/item/PlannerPlanConfigurationLocalizationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/localizations/item/PlannerPlanConfigurationLocalizationItemRequestBuilder.java index ad6453ed210..ef8be31d012 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/localizations/item/PlannerPlanConfigurationLocalizationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/businessscenarios/item/planner/planconfiguration/localizations/item/PlannerPlanConfigurationLocalizationItemRequestBuilder.java @@ -37,18 +37,16 @@ public PlannerPlanConfigurationLocalizationItemRequestBuilder(@jakarta.annotatio super(requestAdapter, "{+baseurl}/solutions/businessScenarios/{businessScenario%2Did}/planner/planConfiguration/localizations/{plannerPlanConfigurationLocalization%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete a plannerPlanConfigurationLocalization object. + * Delete navigation property localizations for solutions * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ public void delete() { delete(null); } /** - * Delete a plannerPlanConfigurationLocalization object. + * Delete navigation property localizations for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); @@ -57,21 +55,19 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Read the properties and relationships of a plannerPlanConfigurationLocalization object. + * Localized names for the plan configuration. * @return a {@link PlannerPlanConfigurationLocalization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public PlannerPlanConfigurationLocalization get() { return get(null); } /** - * Read the properties and relationships of a plannerPlanConfigurationLocalization object. + * Localized names for the plan configuration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PlannerPlanConfigurationLocalization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public PlannerPlanConfigurationLocalization get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -81,23 +77,21 @@ public PlannerPlanConfigurationLocalization get(@jakarta.annotation.Nullable fin return this.requestAdapter.send(requestInfo, errorMapping, PlannerPlanConfigurationLocalization::createFromDiscriminatorValue); } /** - * Update the properties of a plannerPlanConfigurationLocalization object. + * Update the navigation property localizations in solutions * @param body The request body * @return a {@link PlannerPlanConfigurationLocalization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public PlannerPlanConfigurationLocalization patch(@jakarta.annotation.Nonnull final PlannerPlanConfigurationLocalization body) { return patch(body, null); } /** - * Update the properties of a plannerPlanConfigurationLocalization object. + * Update the navigation property localizations in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PlannerPlanConfigurationLocalization} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here */ @jakarta.annotation.Nullable public PlannerPlanConfigurationLocalization patch(@jakarta.annotation.Nonnull final PlannerPlanConfigurationLocalization body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -108,7 +102,7 @@ public PlannerPlanConfigurationLocalization patch(@jakarta.annotation.Nonnull fi return this.requestAdapter.send(requestInfo, errorMapping, PlannerPlanConfigurationLocalization::createFromDiscriminatorValue); } /** - * Delete a plannerPlanConfigurationLocalization object. + * Delete navigation property localizations for solutions * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -116,7 +110,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete a plannerPlanConfigurationLocalization object. + * Delete navigation property localizations for solutions * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -128,7 +122,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Read the properties and relationships of a plannerPlanConfigurationLocalization object. + * Localized names for the plan configuration. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -136,7 +130,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Read the properties and relationships of a plannerPlanConfigurationLocalization object. + * Localized names for the plan configuration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -148,7 +142,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a plannerPlanConfigurationLocalization object. + * Update the navigation property localizations in solutions * @param body The request body * @return a {@link RequestInformation} */ @@ -157,7 +151,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a plannerPlanConfigurationLocalization object. + * Update the navigation property localizations in solutions * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} @@ -188,7 +182,7 @@ public PlannerPlanConfigurationLocalizationItemRequestBuilder withUrl(@jakarta.a public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Read the properties and relationships of a plannerPlanConfigurationLocalization object. + * Localized names for the plan configuration. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/townhalls/item/VirtualEventTownhallItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/townhalls/item/VirtualEventTownhallItemRequestBuilder.java index 533d9b8ebaa..f5a50f41a98 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/townhalls/item/VirtualEventTownhallItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/townhalls/item/VirtualEventTownhallItemRequestBuilder.java @@ -98,7 +98,7 @@ public VirtualEventTownhall get(@jakarta.annotation.Nullable final java.util.fun return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventTownhall::createFromDiscriminatorValue); } /** - * Update the properties of a vvirtualEventTownhall object. + * Update the properties of a virtualEventTownhall object. * @param body The request body * @return a {@link VirtualEventTownhall} * @throws ODataError When receiving a 4XX or 5XX status code @@ -109,7 +109,7 @@ public VirtualEventTownhall patch(@jakarta.annotation.Nonnull final VirtualEvent return patch(body, null); } /** - * Update the properties of a vvirtualEventTownhall object. + * Update the properties of a virtualEventTownhall object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link VirtualEventTownhall} @@ -175,7 +175,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a vvirtualEventTownhall object. + * Update the properties of a virtualEventTownhall 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 vvirtualEventTownhall object. + * Update the properties of a virtualEventTownhall object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/RegistrationConfigurationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/RegistrationConfigurationRequestBuilder.java index 46962ef1af8..48156cae0de 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/RegistrationConfigurationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/RegistrationConfigurationRequestBuilder.java @@ -2,6 +2,7 @@ import com.microsoft.graph.beta.models.odataerrors.ODataError; import com.microsoft.graph.beta.models.VirtualEventWebinarRegistrationConfiguration; +import com.microsoft.graph.beta.solutions.virtualevents.webinars.item.registrationconfiguration.questions.QuestionsRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -20,6 +21,14 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class RegistrationConfigurationRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + * @return a {@link QuestionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QuestionsRequestBuilder questions() { + return new QuestionsRequestBuilder(pathParameters, requestAdapter); + } /** * Instantiates a new {@link RegistrationConfigurationRequestBuilder} and sets the default values. * @param pathParameters Path parameters for the request @@ -36,6 +45,24 @@ public RegistrationConfigurationRequestBuilder(@jakarta.annotation.Nonnull final public RegistrationConfigurationRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration{?%24expand,%24select}", rawUrl); } + /** + * Delete navigation property registrationConfiguration for solutions + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property registrationConfiguration for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } /** * Read the properties and relationships of a virtualEventWebinarRegistrationConfiguration object. * @return a {@link VirtualEventWebinarRegistrationConfiguration} @@ -60,6 +87,51 @@ public VirtualEventWebinarRegistrationConfiguration get(@jakarta.annotation.Null errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventWebinarRegistrationConfiguration::createFromDiscriminatorValue); } + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @return a {@link VirtualEventWebinarRegistrationConfiguration} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventWebinarRegistrationConfiguration patch(@jakarta.annotation.Nonnull final VirtualEventWebinarRegistrationConfiguration body) { + return patch(body, null); + } + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventWebinarRegistrationConfiguration} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventWebinarRegistrationConfiguration patch(@jakarta.annotation.Nonnull final VirtualEventWebinarRegistrationConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventWebinarRegistrationConfiguration::createFromDiscriminatorValue); + } + /** + * Delete navigation property registrationConfiguration for solutions + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property registrationConfiguration for solutions + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } /** * Read the properties and relationships of a virtualEventWebinarRegistrationConfiguration object. * @return a {@link RequestInformation} @@ -80,6 +152,30 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f requestInfo.headers.tryAdd("Accept", "application/json"); return requestInfo; } + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventWebinarRegistrationConfiguration body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property registrationConfiguration in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventWebinarRegistrationConfiguration body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. * @param rawUrl The raw URL to use for the request builder. @@ -90,6 +186,12 @@ public RegistrationConfigurationRequestBuilder withUrl(@jakarta.annotation.Nonnu Objects.requireNonNull(rawUrl); return new RegistrationConfigurationRequestBuilder(rawUrl, requestAdapter); } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } /** * Read the properties and relationships of a virtualEventWebinarRegistrationConfiguration object. */ @@ -128,4 +230,10 @@ public class GetRequestConfiguration extends BaseRequestConfiguration { @jakarta.annotation.Nullable public GetQueryParameters queryParameters = new GetQueryParameters(); } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/QuestionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/QuestionsRequestBuilder.java new file mode 100644 index 00000000000..27a45eb5f3f --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/QuestionsRequestBuilder.java @@ -0,0 +1,247 @@ +package com.microsoft.graph.beta.solutions.virtualevents.webinars.item.registrationconfiguration.questions; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.models.VirtualEventRegistrationQuestionBase; +import com.microsoft.graph.beta.models.VirtualEventRegistrationQuestionBaseCollectionResponse; +import com.microsoft.graph.beta.solutions.virtualevents.webinars.item.registrationconfiguration.questions.count.CountRequestBuilder; +import com.microsoft.graph.beta.solutions.virtualevents.webinars.item.registrationconfiguration.questions.item.VirtualEventRegistrationQuestionBaseItemRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class QuestionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to count the resources in the collection. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder count() { + return new CountRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + * @param virtualEventRegistrationQuestionBaseId The unique identifier of virtualEventRegistrationQuestionBase + * @return a {@link VirtualEventRegistrationQuestionBaseItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventRegistrationQuestionBaseItemRequestBuilder byVirtualEventRegistrationQuestionBaseId(@jakarta.annotation.Nonnull final String virtualEventRegistrationQuestionBaseId) { + Objects.requireNonNull(virtualEventRegistrationQuestionBaseId); + final HashMap urlTplParams = new HashMap(this.pathParameters); + urlTplParams.put("virtualEventRegistrationQuestionBase%2Did", virtualEventRegistrationQuestionBaseId); + return new VirtualEventRegistrationQuestionBaseItemRequestBuilder(urlTplParams, requestAdapter); + } + /** + * Instantiates a new {@link QuestionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QuestionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link QuestionsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public QuestionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + * @return a {@link VirtualEventRegistrationQuestionBaseCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBaseCollectionResponse get() { + return get(null); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistrationQuestionBaseCollectionResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBaseCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationQuestionBaseCollectionResponse::createFromDiscriminatorValue); + } + /** + * Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + * @param body The request body + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase post(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body) { + return post(body, null); + } + /** + * Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase post(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body) { + return toPostRequestInformation(body, null); + } + /** + * Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link QuestionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public QuestionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new QuestionsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Include count of items + */ + @jakarta.annotation.Nullable + public Boolean count; + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Order items by property values + */ + @jakarta.annotation.Nullable + public String[] orderby; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Skip the first n items + */ + @jakarta.annotation.Nullable + public Integer skip; + /** + * Show only the first n items + */ + @jakarta.annotation.Nullable + public Integer top; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24count", count); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + allQueryParams.put("%24skip", skip); + allQueryParams.put("%24top", top); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24orderby", orderby); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/count/CountRequestBuilder.java new file mode 100644 index 00000000000..ad973c02af8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/count/CountRequestBuilder.java @@ -0,0 +1,128 @@ +package com.microsoft.graph.beta.solutions.virtualevents.webinars.item.registrationconfiguration.questions.count; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to count the resources in the collection. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CountRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}", pathParameters); + } + /** + * Instantiates a new {@link CountRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CountRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}", rawUrl); + } + /** + * Get the number of the resource + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get() { + return get(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link Integer} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public Integer get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Integer.class); + } + /** + * Get the number of the resource + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get the number of the resource + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link CountRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CountRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CountRequestBuilder(rawUrl, requestAdapter); + } + /** + * Get the number of the resource + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Filter items by property values + */ + @jakarta.annotation.Nullable + public String filter; + /** + * Search items by search phrases + */ + @jakarta.annotation.Nullable + public String search; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24filter", filter); + allQueryParams.put("%24search", search); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.java new file mode 100644 index 00000000000..01c16176d19 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/solutions/virtualevents/webinars/item/registrationconfiguration/questions/item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.java @@ -0,0 +1,230 @@ +package com.microsoft.graph.beta.solutions.virtualevents.webinars.item.registrationconfiguration.questions.item; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.models.VirtualEventRegistrationQuestionBase; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class VirtualEventRegistrationQuestionBaseItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link VirtualEventRegistrationQuestionBaseItemRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventRegistrationQuestionBaseItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link VirtualEventRegistrationQuestionBaseItemRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public VirtualEventRegistrationQuestionBaseItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}", rawUrl); + } + /** + * Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete() { + delete(null); + } + /** + * Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Registration questions. + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase get() { + return get(null); + } + /** + * Registration questions. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue); + } + /** + * Update the navigation property questions in solutions + * @param body The request body + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase patch(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body) { + return patch(body, null); + } + /** + * Update the navigation property questions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link VirtualEventRegistrationQuestionBase} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public VirtualEventRegistrationQuestionBase patch(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, VirtualEventRegistrationQuestionBase::createFromDiscriminatorValue); + } + /** + * Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Registration questions. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Registration questions. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property questions in solutions + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property questions in solutions + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final VirtualEventRegistrationQuestionBase body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link VirtualEventRegistrationQuestionBaseItemRequestBuilder} + */ + @jakarta.annotation.Nonnull + public VirtualEventRegistrationQuestionBaseItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new VirtualEventRegistrationQuestionBaseItemRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class DeleteRequestConfiguration extends BaseRequestConfiguration { + } + /** + * Registration questions. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java index 3f888f6dd6d..a4a9958bc5c 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/DriveRequestBuilder.java @@ -2,18 +2,6 @@ import com.microsoft.graph.beta.models.Drive; import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.ActivitiesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles.BundlesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following.FollowingRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.ItemsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.ListRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.recent.RecentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.root.RootRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.searchwithq.SearchWithQRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.sharedwithme.SharedWithMeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special.SpecialRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -32,94 +20,6 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class DriveRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the activities property of the microsoft.graph.drive entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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 @@ -136,24 +36,6 @@ public DriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } /** * Get the properties of a drive associated with a fileStorageContainer. * @return a {@link Drive} @@ -178,61 +60,6 @@ public Drive get(@jakarta.annotation.Nullable final java.util.function.Consumer< errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); } - /** - * Update the navigation property drive in storage - * @param body The request body - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive patch(@jakarta.annotation.Nonnull final Drive body) { - return patch(body, null); - } - /** - * Update the navigation property drive in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive patch(@jakarta.annotation.Nonnull final Drive body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); - } - /** - * Provides operations to call the search method. - * @param q Usage: q='{q}' - * @return a {@link SearchWithQRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SearchWithQRequestBuilder searchWithQ(@jakarta.annotation.Nonnull final String q) { - Objects.requireNonNull(q); - return new SearchWithQRequestBuilder(pathParameters, requestAdapter, q); - } - /** - * Delete navigation property drive for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property drive for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } /** * Get the properties of a drive associated with a fileStorageContainer. * @return a {@link RequestInformation} @@ -253,30 +80,6 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f requestInfo.headers.tryAdd("Accept", "application/json"); return requestInfo; } - /** - * Update the navigation property drive in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Drive body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property drive in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Drive body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. * @param rawUrl The raw URL to use for the request builder. @@ -287,12 +90,6 @@ public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU Objects.requireNonNull(rawUrl); return new DriveRequestBuilder(rawUrl, requestAdapter); } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } /** * Get the properties of a drive associated with a fileStorageContainer. */ @@ -331,10 +128,4 @@ public class GetRequestConfiguration extends BaseRequestConfiguration { @jakarta.annotation.Nullable public GetQueryParameters queryParameters = new GetQueryParameters(); } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index 9925db23cb4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.ItemActivityOLDCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.ItemActivityOLDItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.drive 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.drive entity. - * @param itemActivityOLDId The unique identifier of itemActivityOLD - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder byItemActivityOLDId(@jakarta.annotation.Nonnull final String itemActivityOLDId) { - Objects.requireNonNull(itemActivityOLDId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("itemActivityOLD%2Did", itemActivityOLDId); - return new ItemActivityOLDItemRequestBuilder(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/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/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of recent activities that took place under this drive. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get() { - return get(null); - } - /** - * The list of recent activities that took place under this drive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLDCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * The list of recent activities that took place under this drive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent activities that took place under this 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 activities for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this 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); - } - /** - * The list of recent activities that took place under this 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/beta/generated/storage/filestorage/containers/item/drive/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/count/CountRequestBuilder.java deleted file mode 100644 index 0c44fe4c60f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.count; - -import com.microsoft.graph.beta.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/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/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/beta/generated/storage/filestorage/containers/item/drive/activities/item/ItemActivityOLDItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/ItemActivityOLDItemRequestBuilder.java deleted file mode 100644 index 0ef60447780..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/ItemActivityOLDItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.driveitem.DriveItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.listitem.ListItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityOLDItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the driveItem property of the microsoft.graph.itemActivityOLD entity. - * @return a {@link DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder driveItem() { - return new DriveItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the listItem property of the microsoft.graph.itemActivityOLD entity. - * @return a {@link ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder listItem() { - return new ListItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%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); - } - /** - * The list of recent activities that took place under this drive. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get() { - return get(null); - } - /** - * The list of recent activities that took place under this drive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * Update the navigation property activities in storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD patch(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD patch(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::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; - } - /** - * The list of recent activities that took place under this drive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent activities that took place under this 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 activities in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityOLDItemRequestBuilder(rawUrl, 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 recent activities that took place under this 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/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index cbd6c20b84f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.driveitem; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.driveitem.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.driveitem.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.itemActivityOLD 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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/activities/{itemActivityOLD%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/activities/{itemActivityOLD%2Did}/driveItem{?%24expand,%24select}", rawUrl); - } - /** - * Get driveItem from storage - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * Get driveItem from storage - * @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); - } - /** - * Get driveItem from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get driveItem 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 DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get driveItem 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/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 37c370fd3cb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.driveitem.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/activities/{itemActivityOLD%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/activities/{itemActivityOLD%2Did}/driveItem/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 7eadc2dd723..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.driveitem.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}/driveItem/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/activities/item/listitem/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/listitem/ListItemRequestBuilder.java deleted file mode 100644 index 7f8fa63f4b6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/activities/item/listitem/ListItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.activities.item.listitem; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.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.itemActivityOLD 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/activities/{itemActivityOLD%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/activities/{itemActivityOLD%2Did}/listItem{?%24expand,%24select}", rawUrl); - } - /** - * Get listItem from storage - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem get() { - return get(null); - } - /** - * Get listItem from storage - * @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); - } - /** - * Get listItem from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get listItem 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 ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get listItem 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/beta/generated/storage/filestorage/containers/item/drive/bundles/BundlesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/BundlesRequestBuilder.java deleted file mode 100644 index eb2a18af7fa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/BundlesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/bundles/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/count/CountRequestBuilder.java deleted file mode 100644 index 0bab8f0fa1a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/bundles/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 9e83aa10edc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/bundles/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/item/content/ContentRequestBuilder.java deleted file mode 100644 index 5ca5708c12a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/bundles/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 0ab5bea7372..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/bundles/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.bundles.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index cc92f1b5506..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get createdByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from storage - * @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); - } - /** - * Get createdByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser 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/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 261a4f11e8f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.createdbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 7aea331e1d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/createdByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 405c67ead92..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.createdbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/following/FollowingRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/FollowingRequestBuilder.java deleted file mode 100644 index f66c9a61ffb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/FollowingRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following; - -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/following/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/count/CountRequestBuilder.java deleted file mode 100644 index a6f941c7b13..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/following/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 922d40c466f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/following/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/item/content/ContentRequestBuilder.java deleted file mode 100644 index 6604bc99b6b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/following/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index cebb2216dc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/following/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.following.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/ItemsRequestBuilder.java deleted file mode 100644 index 8161ac5faab..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/count/CountRequestBuilder.java deleted file mode 100644 index 7ec2a0d0469..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 57a3d3b5793..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,526 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.activities.ActivitiesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.assignsensitivitylabel.AssignSensitivityLabelRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.checkin.CheckinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.checkout.CheckoutRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children.ChildrenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.copy.CopyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createlink.CreateLinkRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createuploadsession.CreateUploadSessionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.delta.DeltaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.deltawithtoken.DeltaWithTokenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.extractsensitivitylabels.ExtractSensitivityLabelsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.follow.FollowRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.invite.InviteRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.listitem.ListItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permanentdelete.PermanentDeleteRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.preview.PreviewRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.restore.RestoreRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.retentionlabel.RetentionLabelRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.searchwithq.SearchWithQRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.subscriptions.SubscriptionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.thumbnails.ThumbnailsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.unfollow.UnfollowRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.validatepermission.ValidatePermissionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.versions.VersionsRequestBuilder; -import com.microsoft.graph.beta.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 activities property of the microsoft.graph.driveItem entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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 manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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 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/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index fb53ba319bd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.activities; - -import com.microsoft.graph.beta.models.ItemActivityOLDCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.activities.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.activities.item.ItemActivityOLDItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.driveItem 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.driveItem entity. - * @param itemActivityOLDId The unique identifier of itemActivityOLD - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder byItemActivityOLDId(@jakarta.annotation.Nonnull final String itemActivityOLDId) { - Objects.requireNonNull(itemActivityOLDId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("itemActivityOLD%2Did", itemActivityOLDId); - return new ItemActivityOLDItemRequestBuilder(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}/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}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get() { - return get(null); - } - /** - * The list of recent activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLDCollectionResponse::createFromDiscriminatorValue); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent 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 ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ActivitiesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The list of recent activities that took place on this 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/count/CountRequestBuilder.java deleted file mode 100644 index 990eff71675..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.activities.count; - -import com.microsoft.graph.beta.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}/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}/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/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java deleted file mode 100644 index 845bd5b2330..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.activities.item; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.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 activities property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityOLDItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/activities/{itemActivityOLD%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/activities/{itemActivityOLD%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get() { - return get(null); - } - /** - * The list of recent activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent 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 ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityOLDItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * The list of recent 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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index 4bebd053f16..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics; - -import com.microsoft.graph.beta.models.ItemAnalytics; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.alltime.AllTimeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.ItemActivityStatsRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java deleted file mode 100644 index ae6e7353fd3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.alltime; - -import com.microsoft.graph.beta.models.ItemActivityStat; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java deleted file mode 100644 index 3848cdc42ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats; - -import com.microsoft.graph.beta.models.ItemActivityStat; -import com.microsoft.graph.beta.models.ItemActivityStatCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java deleted file mode 100644 index 65cc38cce6d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java deleted file mode 100644 index ab38d093783..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item; - -import com.microsoft.graph.beta.models.ItemActivityStat; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index 124e991c990..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities; - -import com.microsoft.graph.beta.models.ItemActivity; -import com.microsoft.graph.beta.models.ItemActivityCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java deleted file mode 100644 index 81a63fc4bb7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java deleted file mode 100644 index 4114b631447..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item; - -import com.microsoft.graph.beta.models.ItemActivity; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index 25cab42ebd9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index d6bc6788ea4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 554b17f9013..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@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/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@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/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java deleted file mode 100644 index 02e44b31039..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.analytics.lastsevendays; - -import com.microsoft.graph.beta.models.ItemActivityStat; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java deleted file mode 100644 index 6969b76745d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.assignsensitivitylabel; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java deleted file mode 100644 index 37a2d15a3b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.assignsensitivitylabel; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinPostRequestBody.java deleted file mode 100644 index 52b2a2a4de2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinRequestBuilder.java deleted file mode 100644 index 8b0d7dd2ccf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/checkin/CheckinRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.checkin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/checkout/CheckoutRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/checkout/CheckoutRequestBuilder.java deleted file mode 100644 index c6242dbd449..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/checkout/CheckoutRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.checkout; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/children/ChildrenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/ChildrenRequestBuilder.java deleted file mode 100644 index 61524b41d34..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/ChildrenRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/children/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/count/CountRequestBuilder.java deleted file mode 100644 index aa04752397c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 380ea97cde8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/content/ContentRequestBuilder.java deleted file mode 100644 index d13a9a80166..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 32941594191..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/children/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.children.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@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}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@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}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/items/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/content/ContentRequestBuilder.java deleted file mode 100644 index 843f81d849b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 79c72a7e419..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyPostRequestBody.java deleted file mode 100644 index 5e89ba075d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.copy; - -import com.microsoft.graph.beta.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; - } - /** - * Gets the childrenOnly property value. The childrenOnly property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getChildrenOnly() { - return this.backingStore.get("childrenOnly"); - } - /** - * 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("childrenOnly", (n) -> { this.setChildrenOnly(n.getBooleanValue()); }); - 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.writeBooleanValue("childrenOnly", this.getChildrenOnly()); - 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 childrenOnly property value. The childrenOnly property - * @param value Value to set for the childrenOnly property. - */ - public void setChildrenOnly(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("childrenOnly", 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/beta/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyRequestBuilder.java deleted file mode 100644 index ad304a55ff2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/copy/CopyRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.copy; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress. - * @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 create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress. - * @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 create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress. - * @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 create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index bbaa7107d3b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get createdByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from storage - * @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); - } - /** - * Get createdByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser 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/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index c7599a0f3ba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createdbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index fa9e983fbc6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/items/{driveItem-id}/createdByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 88ddc55def1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createdbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java deleted file mode 100644 index 69fd61baebc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createlink; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java deleted file mode 100644 index e469f734bfd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createlink; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Create a link to share a driveItem driveItem.The createLink action creates 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 is 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); - } - /** - * Create a link to share a driveItem driveItem.The createLink action creates 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 is 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); - } - /** - * Create a link to share a driveItem driveItem.The createLink action creates 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 is 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); - } - /** - * Create a link to share a driveItem driveItem.The createLink action creates 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 is 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/beta/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java deleted file mode 100644 index b42bd65c5b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createuploadsession; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java deleted file mode 100644 index e17801c0fb5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.createuploadsession; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaGetResponse.java deleted file mode 100644 index 190cb2a8e2e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.delta; - -import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaRequestBuilder.java deleted file mode 100644 index 5d779d36431..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.delta; - -import com.microsoft.graph.beta.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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - * @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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - * @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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - * @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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java deleted file mode 100644 index 75986789207..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.deltawithtoken; - -import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java deleted file mode 100644 index 876c71eeeb6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.deltawithtoken; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java deleted file mode 100644 index db9710afa21..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.extractsensitivitylabels; - -import com.microsoft.graph.beta.models.ExtractSensitivityLabelsResult; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/follow/FollowRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/follow/FollowRequestBuilder.java deleted file mode 100644 index 2db4c025d26..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/follow/FollowRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.follow; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java deleted file mode 100644 index 41cc0ae2635..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java deleted file mode 100644 index 19da2bb3f54..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java +++ /dev/null @@ -1,172 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.beta.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); - } - /** - * Get itemActivityStats for the activities that took place under this resource within the specified time interval. Analytics aggregates might not be available for all action types. - * @return a {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse get() { - return get(null); - } - /** - * Get itemActivityStats for the activities that took place under 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @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); - } - /** - * Get itemActivityStats for the activities that took place under 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 itemActivityStats for the activities that took place under 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get itemActivityStats for the activities that took place under 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/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostRequestBody.java deleted file mode 100644 index 3c3b6508a66..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.invite; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostResponse.java deleted file mode 100644 index 8f6ac89a2d3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InvitePostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.invite; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InviteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InviteRequestBuilder.java deleted file mode 100644 index f9c71c9dfaa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/invite/InviteRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.invite; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 an email to the recipients to notify them the item was shared. - * @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 an email to the recipients to notify them the item was shared. - * @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 an email to the recipients to notify them the item was shared. - * @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 an email to the recipients to notify them the item was shared. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 5a6f37f331e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from storage - * @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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser 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/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index f0cbf33b1ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index eb661f96bee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/items/{driveItem-id}/lastModifiedByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index faf8c72d31f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/listitem/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/listitem/ListItemRequestBuilder.java deleted file mode 100644 index 3a6cce7bb60..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/listitem/ListItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.listitem; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java deleted file mode 100644 index eec6f18eadf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permanentdelete; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index d7ad266377b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.models.PermissionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/count/CountRequestBuilder.java deleted file mode 100644 index fce4794b542..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java deleted file mode 100644 index 839a1b4ccc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.item.grant.GrantRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.item.revokegrants.RevokeGrantsRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to call the revokeGrants method. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder revokeGrants() { - return new RevokeGrantsRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java deleted file mode 100644 index ffd9e183b69..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java deleted file mode 100644 index 8b6e63bdf49..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java deleted file mode 100644 index 6b1e35a8acd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java deleted file mode 100644 index a39c5cd9c04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.item.revokegrants; - -import com.microsoft.graph.beta.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 RevokeGrantsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RevokeGrantsPostRequestBody} and sets the default values. - */ - public RevokeGrantsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RevokeGrantsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RevokeGrantsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RevokeGrantsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("grantees", (n) -> { this.setGrantees(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the grantees property value. The grantees property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getGrantees() { - return this.backingStore.get("grantees"); - } - /** - * Serializes information the current 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("grantees", this.getGrantees()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the grantees property value. The grantees property - * @param value Value to set for the grantees property. - */ - public void setGrantees(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("grantees", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java deleted file mode 100644 index 1feff184051..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.permissions.item.revokegrants; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 revokeGrants method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RevokeGrantsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@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}/revokeGrants", pathParameters); - } - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@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}/revokeGrants", rawUrl); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body) { - return post(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.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); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RevokeGrantsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the 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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RevokeGrantsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewPostRequestBody.java deleted file mode 100644 index 6889de89c3f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewPostRequestBody.java +++ /dev/null @@ -1,175 +0,0 @@ -package com.microsoft.graph.beta.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 allowEdit property value. The allowEdit property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getAllowEdit() { - return this.backingStore.get("allowEdit"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the chromeless property value. The chromeless property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getChromeless() { - return this.backingStore.get("chromeless"); - } - /** - * 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("allowEdit", (n) -> { this.setAllowEdit(n.getBooleanValue()); }); - deserializerMap.put("chromeless", (n) -> { this.setChromeless(n.getBooleanValue()); }); - deserializerMap.put("page", (n) -> { this.setPage(n.getStringValue()); }); - deserializerMap.put("viewer", (n) -> { this.setViewer(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 viewer property value. The viewer property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getViewer() { - return this.backingStore.get("viewer"); - } - /** - * 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.writeBooleanValue("allowEdit", this.getAllowEdit()); - writer.writeBooleanValue("chromeless", this.getChromeless()); - writer.writeStringValue("page", this.getPage()); - writer.writeStringValue("viewer", this.getViewer()); - 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 allowEdit property value. The allowEdit property - * @param value Value to set for the allowEdit property. - */ - public void setAllowEdit(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("allowEdit", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the chromeless property value. The chromeless property - * @param value Value to set for the chromeless property. - */ - public void setChromeless(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("chromeless", 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 viewer property value. The viewer property - * @param value Value to set for the viewer property. - */ - public void setViewer(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("viewer", 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/beta/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewRequestBuilder.java deleted file mode 100644 index 11efe181ee9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/preview/PreviewRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.preview; - -import com.microsoft.graph.beta.models.ItemPreviewInfo; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/restore/RestorePostRequestBody.java deleted file mode 100644 index 2ff6c863eac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/restore/RestorePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.restore; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/restore/RestoreRequestBuilder.java deleted file mode 100644 index 16030ed724f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/restore/RestoreRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.restore; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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. - * @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. - * @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. - * @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. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java deleted file mode 100644 index 51e96f72ffe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.retentionlabel; - -import com.microsoft.graph.beta.models.ItemRetentionLabel; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java deleted file mode 100644 index 1b6b9fe3784..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.searchwithq; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java deleted file mode 100644 index 1b534d4f2f3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.searchwithq; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java deleted file mode 100644 index 1cdbb0120ba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.subscriptions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Subscription; -import com.microsoft.graph.beta.models.SubscriptionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.subscriptions.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java deleted file mode 100644 index fb6daeda47e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.subscriptions.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java deleted file mode 100644 index a7d479c5ebe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.subscriptions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Subscription; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java deleted file mode 100644 index b59eb5dbd57..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.subscriptions.item.reauthorize; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java deleted file mode 100644 index a076db5aa80..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.thumbnails; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ThumbnailSet; -import com.microsoft.graph.beta.models.ThumbnailSetCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.thumbnails.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java deleted file mode 100644 index ed0088cd7c5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.thumbnails.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java deleted file mode 100644 index 06bff8d7419..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.thumbnails.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java deleted file mode 100644 index 26dab559b67..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.unfollow; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java deleted file mode 100644 index 0d6fcdf2e7b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java deleted file mode 100644 index a911ca2412b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.validatepermission; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/VersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/VersionsRequestBuilder.java deleted file mode 100644 index b48f459eef2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/VersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.versions; - -import com.microsoft.graph.beta.models.DriveItemVersion; -import com.microsoft.graph.beta.models.DriveItemVersionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.versions.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/count/CountRequestBuilder.java deleted file mode 100644 index 5a025a80a5f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.versions.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java deleted file mode 100644 index 7ada2a92238..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.versions.item; - -import com.microsoft.graph.beta.models.DriveItemVersion; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.versions.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java deleted file mode 100644 index c21b3978e2b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,196 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.versions.item.content; - -import com.microsoft.graph.beta.models.DriveItemVersion; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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); - } - /** - * Delete content for the navigation property versions in storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete content for the navigation property versions in 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 content for the navigation property versions from storage - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * Get content for the navigation property versions from storage - * @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); - } - /** - * Update content for the navigation property versions in storage - * @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); - } - /** - * Update content for the navigation property versions in storage - * @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); - } - /** - * Delete content for the navigation property versions in storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete content for the navigation property versions in 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 content for the navigation property versions from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get content for the navigation property versions 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); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * Update content for the navigation property versions in storage - * @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); - } - /** - * Update content for the navigation property versions in storage - * @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/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java deleted file mode 100644 index 1679a62cd5e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.versions.item.restoreversion; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/WorkbookRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/WorkbookRequestBuilder.java deleted file mode 100644 index 4e57f3e9894..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/WorkbookRequestBuilder.java +++ /dev/null @@ -1,340 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Workbook; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.application.ApplicationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.closesession.CloseSessionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.CommentsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.createsession.CreateSessionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.FunctionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.NamesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.operations.OperationsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.refreshsession.RefreshSessionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.sessioninforesourcewithkey.SessionInfoResourceWithKeyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tablerowoperationresultwithkey.TableRowOperationResultWithKeyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.TablesRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java deleted file mode 100644 index 6b37e181d9a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.application; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookApplication; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java deleted file mode 100644 index 9bbf2feb832..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java deleted file mode 100644 index fbaea7b1fe8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.application.calculate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java deleted file mode 100644 index 53122d7a09f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.closesession; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java deleted file mode 100644 index f60046ad4f1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.models.WorkbookCommentCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.count.CountRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get comments from storage - * @return a {@link WorkbookCommentCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentCollectionResponse get() { - return get(null); - } - /** - * Get comments from storage - * @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); - } - /** - * Get comments from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get comments 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 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); - } - /** - * Get comments 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java deleted file mode 100644 index 9db90dd56d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java deleted file mode 100644 index 6ef935a0502..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.RepliesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(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); - } - /** - * Get comments from storage - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * Get comments from storage - * @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; - } - /** - * Get comments from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get comments 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 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 { - } - /** - * Get comments 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java deleted file mode 100644 index 8a73ff540d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.models.WorkbookCommentReplyCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java deleted file mode 100644 index 68897d69ed6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java deleted file mode 100644 index efe5ff5ebf1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/TaskRequestBuilder.java deleted file mode 100644 index a8a5a1f081e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/TaskRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.ChangesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.CommentRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder comment() { - return new CommentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.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}/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.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}/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment thread. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index c79ed380500..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.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}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.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}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountGetResponse.java deleted file mode 100644 index e16564739ed..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 223f02a080a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/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/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index d08adb7ed82..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.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}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.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}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 226d87d311f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/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/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/CommentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/CommentRequestBuilder.java deleted file mode 100644 index 209877f8a64..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/CommentRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.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}/task/comment{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.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}/task/comment{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comment for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * The comment that the task is associated with. - * @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 comment 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 comment 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 comment for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The comment that the task is associated with. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property comment 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 comment 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 CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentRequestBuilder(rawUrl, 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 comment that the task is associated with. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/TaskRequestBuilder.java deleted file mode 100644 index 9065df36560..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/TaskRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.ChangesRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.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}/task/comment/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.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}/task/comment/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment. 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 task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment. 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index e410d85203a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.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}/task/comment/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.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}/task/comment/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountGetResponse.java deleted file mode 100644 index c221d835e04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 2d6ba8a5e9e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/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/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index c731a7b4d68..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.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}/task/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.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}/task/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 027aa26c944..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/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/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/TaskRequestBuilder.java deleted file mode 100644 index ddefce405b5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/TaskRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes.ChangesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.CommentRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder comment() { - return new CommentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.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}/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.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}/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment. 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 task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment. 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index fdc0936e23d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.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}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.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}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/count/CountGetResponse.java deleted file mode 100644 index 8192feec4bf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 52b6b2b79b3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/comments/{workbookComment%2Did}/task/changes/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/comments/{workbookComment%2Did}/task/changes/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index ff3363ac6e7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.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}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.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}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 45ff74f03de..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/comments/{workbookComment%2Did}/task/changes/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/comments/{workbookComment%2Did}/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/CommentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/CommentRequestBuilder.java deleted file mode 100644 index dfbb51b7e2f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/CommentRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.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 comment property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentRequestBuilder 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 CommentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.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}/task/comment{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.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}/task/comment{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comment for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * The comment that the task is associated with. - * @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 comment 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 comment 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 comment for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The comment that the task is associated with. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property comment 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 comment 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 CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentRequestBuilder(rawUrl, 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 comment that the task is associated with. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java deleted file mode 100644 index a986bc7410a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.models.WorkbookCommentReplyCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.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}/task/comment/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}/task/comment/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/count/CountRequestBuilder.java deleted file mode 100644 index b83a96a54c5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.count; - -import com.microsoft.graph.beta.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}/task/comment/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}/task/comment/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java deleted file mode 100644 index c1a45072acf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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}/task/comment/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}/task/comment/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/TaskRequestBuilder.java deleted file mode 100644 index e139609c699..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/TaskRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.ChangesRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.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}/task/comment/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.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}/task/comment/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment thread. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index 8c46538a90e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.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}/task/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.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}/task/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountGetResponse.java deleted file mode 100644 index 28a16fd8787..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 82426235ac4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/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/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index f9f69ee957a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.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}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.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}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index d9bc6ab9bc6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/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/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java deleted file mode 100644 index dc44f20fe78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java deleted file mode 100644 index eea470f11ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.createsession; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java deleted file mode 100644 index 98642a6e0ad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java +++ /dev/null @@ -1,3522 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctions; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.abs.AbsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrint.AccrIntRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrintm.AccrIntMRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acos.AcosRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acosh.AcoshRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acot.AcotRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acoth.AcothRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.amordegrc.AmorDegrcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.amorlinc.AmorLincRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.and.AndRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.arabic.ArabicRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.areas.AreasRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asc.AscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asin.AsinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asinh.AsinhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan.AtanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan2.Atan2RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atanh.AtanhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.avedev.AveDevRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.average.AverageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averagea.AverageARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageif.AverageIfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageifs.AverageIfsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bahttext.BahtTextRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.base.BaseRequestBuilderEscaped; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besseli.BesselIRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselj.BesselJRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselk.BesselKRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bessely.BesselYRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_dist.BetaDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_inv.BetaInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2dec.Bin2DecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2hex.Bin2HexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2oct.Bin2OctRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist_range.BinomDistRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist.BinomDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_inv.BinomInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitand.BitandRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitlshift.BitlshiftRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitor.BitorRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitrshift.BitrshiftRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitxor.BitxorRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_math.CeilingMathRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_precise.CeilingPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.charescaped.CharRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist_rt.ChiSqDistRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist.ChiSqDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv_rt.ChiSqInvRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv.ChiSqInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.choose.ChooseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.clean.CleanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.code.CodeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.combin.CombinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.combina.CombinaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.complex.ComplexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.concatenate.ConcatenateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_norm.ConfidenceNormRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_t.ConfidenceTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.convert.ConvertRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cos.CosRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cosh.CoshRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cot.CotRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coth.CothRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.counta.CountARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countblank.CountBlankRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countif.CountIfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countifs.CountIfsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaybs.CoupDayBsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdays.CoupDaysRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaysnc.CoupDaysNcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupncd.CoupNcdRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupnum.CoupNumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.couppcd.CoupPcdRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.csc.CscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.csch.CschRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumipmt.CumIPmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumprinc.CumPrincRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.date.DateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.datevalue.DatevalueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.daverage.DaverageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.day.DayRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.days.DaysRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.days360.Days360RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.db.DbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dbcs.DbcsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcount.DcountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcounta.DcountARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ddb.DdbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2bin.Dec2BinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2hex.Dec2HexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2oct.Dec2OctRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.decimal.DecimalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.degrees.DegreesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.delta.DeltaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.devsq.DevSqRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dget.DgetRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.disc.DiscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmax.DmaxRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmin.DminRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollar.DollarRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarde.DollarDeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarfr.DollarFrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dproduct.DproductRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdev.DstDevRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdevp.DstDevPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dsum.DsumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.duration.DurationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvar.DvarRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvarp.DvarPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ecma_ceiling.EcmaCeilingRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.edate.EdateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.effect.EffectRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.eomonth.EoMonthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf_precise.ErfPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf.ErfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc_precise.ErfCPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc.ErfCRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.error_type.ErrorTypeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.even.EvenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.exact.ExactRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.exp.ExpRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.expon_dist.ExponDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist_rt.FDistRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist.FDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv_rt.FInvRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv.FInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fact.FactRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.factdouble.FactDoubleRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.falseescaped.FalseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.find.FindRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.findb.FindBRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisher.FisherRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisherinv.FisherInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fixed.FixedRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_math.FloorMathRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_precise.FloorPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fv.FvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fvschedule.FvscheduleRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_dist.GammaDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_inv.GammaInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma.GammaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln_precise.GammaLnPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln.GammaLnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gauss.GaussRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gcd.GcdRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.geomean.GeoMeanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gestep.GeStepRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.harmean.HarMeanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2bin.Hex2BinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2dec.Hex2DecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2oct.Hex2OctRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hlookup.HlookupRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hour.HourRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hyperlink.HyperlinkRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hypgeom_dist.HypGeomDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ifescaped.IfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imabs.ImAbsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imaginary.ImaginaryRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imargument.ImArgumentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imconjugate.ImConjugateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcos.ImCosRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcosh.ImCoshRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcot.ImCotRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsc.ImCscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsch.ImCschRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imdiv.ImDivRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imexp.ImExpRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imln.ImLnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog10.ImLog10RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog2.ImLog2RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.impower.ImPowerRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.improduct.ImProductRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imreal.ImRealRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsec.ImSecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsech.ImSechRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsin.ImSinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsinh.ImSinhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsqrt.ImSqrtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsub.ImSubRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsum.ImSumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imtan.ImTanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.intescaped.IntRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.intrate.IntRateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ipmt.IpmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.irr.IrrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserr.IsErrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserror.IsErrorRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iseven.IsEvenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isformula.IsFormulaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.islogical.IsLogicalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isna.IsNARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnontext.IsNonTextRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnumber.IsNumberRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iso_ceiling.IsoCeilingRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isodd.IsOddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isoweeknum.IsoWeekNumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ispmt.IspmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isref.IsrefRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.istext.IsTextRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.kurt.KurtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.large.LargeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lcm.LcmRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.left.LeftRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.leftb.LeftbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.len.LenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lenb.LenbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ln.LnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.log.LogRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.log10.Log10RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_dist.LogNormDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_inv.LogNormInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lookup.LookupRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lower.LowerRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.match.MatchRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.max.MaxRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.maxa.MaxARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mduration.MdurationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.median.MedianRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mid.MidRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.midb.MidbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.min.MinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mina.MinARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.minute.MinuteRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mirr.MirrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mod.ModRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.month.MonthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mround.MroundRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.multinomial.MultiNomialRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.n.NRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.na.NaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.negbinom_dist.NegBinomDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays_intl.NetworkDaysIntlRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays.NetworkDaysRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.nominal.NominalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_dist.NormDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_inv.NormInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_dist.NormSDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_inv.NormSInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.not.NotRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.now.NowRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.nper.NperRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.npv.NpvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.numbervalue.NumberValueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2bin.Oct2BinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2dec.Oct2DecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2hex.Oct2HexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.odd.OddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfprice.OddFPriceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfyield.OddFYieldRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlprice.OddLPriceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlyield.OddLYieldRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.or.OrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pduration.PdurationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_exc.PercentileExcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_inc.PercentileIncRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_exc.PercentRankExcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_inc.PercentRankIncRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.permut.PermutRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.permutationa.PermutationaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.phi.PhiRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pi.PiRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pmt.PmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.poisson_dist.PoissonDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.power.PowerRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ppmt.PpmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.price.PriceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricedisc.PriceDiscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricemat.PriceMatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.product.ProductRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.proper.ProperRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pv.PvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_exc.QuartileExcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_inc.QuartileIncRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quotient.QuotientRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.radians.RadiansRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rand.RandRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.randbetween.RandBetweenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_avg.RankAvgRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_eq.RankEqRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rate.RateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.received.ReceivedRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.replace.ReplaceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.replaceb.ReplaceBRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rept.ReptRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.right.RightRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rightb.RightbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.roman.RomanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.round.RoundRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rounddown.RoundDownRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.roundup.RoundUpRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rri.RriRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sec.SecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sech.SechRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.second.SecondRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.seriessum.SeriesSumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheet.SheetRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheets.SheetsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sign.SignRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sin.SinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sinh.SinhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew_p.SkewPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew.SkewRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sln.SlnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.small.SmallRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrt.SqrtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrtpi.SqrtPiRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.standardize.StandardizeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_p.StDevPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_s.StDevSRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdeva.StDevARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdevpa.StDevPARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.substitute.SubstituteRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.subtotal.SubtotalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sum.SumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumif.SumIfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumifs.SumIfsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumsq.SumSqRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.syd.SydRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_2t.TDist2TRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_rt.TDistRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist.TDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv_2t.TInv2TRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv.TInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t.TRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tan.TanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tanh.TanhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbilleq.TbillEqRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillprice.TbillPriceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillyield.TbillYieldRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.text.TextRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.time.TimeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.timevalue.TimevalueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.today.TodayRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trim.TrimRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trimmean.TrimMeanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trueescaped.TrueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trunc.TruncRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.type.TypeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.unichar.UnicharRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.unicode.UnicodeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.upper.UpperRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.usdollar.UsdollarRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.value.ValueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_p.VarPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_s.VarSRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vara.VarARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.varpa.VarPARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vdb.VdbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vlookup.VlookupRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weekday.WeekdayRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weeknum.WeekNumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weibull_dist.WeibullDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday_intl.WorkDayIntlRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday.WorkDayRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xirr.XirrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xnpv.XnpvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xor.XorRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.year.YearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yearfrac.YearFracRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yield.YieldRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yielddisc.YieldDiscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yieldmat.YieldMatRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java deleted file mode 100644 index 03d70fd00b3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.abs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AbsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AbsPostRequestBody} and sets the default values. - */ - public AbsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AbsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AbsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AbsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java deleted file mode 100644 index beb70ef9360..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.abs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java deleted file mode 100644 index f6a83f3df25..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrint; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AccrIntPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AccrIntPostRequestBody} and sets the default values. - */ - public AccrIntPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AccrIntPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AccrIntPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AccrIntPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the calcMethod property value. The calcMethod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCalcMethod() { - return this.backingStore.get("calcMethod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("calcMethod", (n) -> { this.setCalcMethod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstInterest", (n) -> { this.setFirstInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("par", (n) -> { this.setPar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstInterest property value. The firstInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstInterest() { - return this.backingStore.get("firstInterest"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the par property value. The par property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPar() { - return this.backingStore.get("par"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("calcMethod", this.getCalcMethod()); - writer.writeObjectValue("firstInterest", this.getFirstInterest()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("par", this.getPar()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the calcMethod property value. The calcMethod property - * @param value Value to set for the calcMethod property. - */ - public void setCalcMethod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("calcMethod", value); - } - /** - * Sets the firstInterest property value. The firstInterest property - * @param value Value to set for the firstInterest property. - */ - public void setFirstInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstInterest", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the par property value. The par property - * @param value Value to set for the par property. - */ - public void setPar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("par", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java deleted file mode 100644 index 913597d49ff..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrint; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java deleted file mode 100644 index 72eccab5c4b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrintm; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AccrIntMPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AccrIntMPostRequestBody} and sets the default values. - */ - public AccrIntMPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AccrIntMPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AccrIntMPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AccrIntMPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("par", (n) -> { this.setPar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the par property value. The par property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPar() { - return this.backingStore.get("par"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("par", this.getPar()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the par property value. The par property - * @param value Value to set for the par property. - */ - public void setPar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("par", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java deleted file mode 100644 index c037a89a21d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.accrintm; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java deleted file mode 100644 index b15482993f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acos; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcosPostRequestBody} and sets the default values. - */ - public AcosPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AcosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcosPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java deleted file mode 100644 index b2e7c867fc3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acos; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java deleted file mode 100644 index da08b154be3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acosh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcoshPostRequestBody} and sets the default values. - */ - public AcoshPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AcoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcoshPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java deleted file mode 100644 index 180f00fe38e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acosh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java deleted file mode 100644 index 1758bd9b4ee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acot; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcotPostRequestBody} and sets the default values. - */ - public AcotPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AcotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcotPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java deleted file mode 100644 index 3c766dcfe52..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acot; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java deleted file mode 100644 index b65561f54e5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acoth; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcothPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcothPostRequestBody} and sets the default values. - */ - public AcothPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AcothPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcothPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcothPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java deleted file mode 100644 index 05c9e2c644f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.acoth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java deleted file mode 100644 index 3e42f035ead..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.amordegrc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AmorDegrcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AmorDegrcPostRequestBody} and sets the default values. - */ - public AmorDegrcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AmorDegrcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AmorDegrcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AmorDegrcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the datePurchased property value. The datePurchased property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatePurchased() { - return this.backingStore.get("datePurchased"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("datePurchased", (n) -> { this.setDatePurchased(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstPeriod", (n) -> { this.setFirstPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstPeriod property value. The firstPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstPeriod() { - return this.backingStore.get("firstPeriod"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("datePurchased", this.getDatePurchased()); - writer.writeObjectValue("firstPeriod", this.getFirstPeriod()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the datePurchased property value. The datePurchased property - * @param value Value to set for the datePurchased property. - */ - public void setDatePurchased(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("datePurchased", value); - } - /** - * Sets the firstPeriod property value. The firstPeriod property - * @param value Value to set for the firstPeriod property. - */ - public void setFirstPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstPeriod", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java deleted file mode 100644 index 1265c15bf82..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.amordegrc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java deleted file mode 100644 index 131d751cce7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.amorlinc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AmorLincPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AmorLincPostRequestBody} and sets the default values. - */ - public AmorLincPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AmorLincPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AmorLincPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AmorLincPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the datePurchased property value. The datePurchased property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatePurchased() { - return this.backingStore.get("datePurchased"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("datePurchased", (n) -> { this.setDatePurchased(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstPeriod", (n) -> { this.setFirstPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstPeriod property value. The firstPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstPeriod() { - return this.backingStore.get("firstPeriod"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("datePurchased", this.getDatePurchased()); - writer.writeObjectValue("firstPeriod", this.getFirstPeriod()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the datePurchased property value. The datePurchased property - * @param value Value to set for the datePurchased property. - */ - public void setDatePurchased(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("datePurchased", value); - } - /** - * Sets the firstPeriod property value. The firstPeriod property - * @param value Value to set for the firstPeriod property. - */ - public void setFirstPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstPeriod", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java deleted file mode 100644 index a7f24c88782..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.amorlinc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java deleted file mode 100644 index 3674db6f3e2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.and; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AndPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AndPostRequestBody} and sets the default values. - */ - public AndPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AndPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AndPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AndPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java deleted file mode 100644 index 84ccc7e1a07..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.and; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java deleted file mode 100644 index 56ca2fdf3ee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.arabic; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ArabicPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ArabicPostRequestBody} and sets the default values. - */ - public ArabicPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ArabicPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ArabicPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ArabicPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java deleted file mode 100644 index e6873edf0a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.arabic; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java deleted file mode 100644 index 2d34c9572a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.areas; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AreasPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AreasPostRequestBody} and sets the default values. - */ - public AreasPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AreasPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AreasPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AreasPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java deleted file mode 100644 index f7732a49912..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.areas; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java deleted file mode 100644 index 6492efd8f6e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AscPostRequestBody} and sets the default values. - */ - public AscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java deleted file mode 100644 index a189d036e64..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java deleted file mode 100644 index 0d56429a77f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AsinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AsinPostRequestBody} and sets the default values. - */ - public AsinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AsinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AsinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AsinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java deleted file mode 100644 index 6e085efbebc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java deleted file mode 100644 index 1f5977126e0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asinh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AsinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AsinhPostRequestBody} and sets the default values. - */ - public AsinhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AsinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AsinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AsinhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java deleted file mode 100644 index 7ed2c81f38d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.asinh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java deleted file mode 100644 index 958cbe195d0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AtanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AtanPostRequestBody} and sets the default values. - */ - public AtanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AtanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AtanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AtanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java deleted file mode 100644 index 57f65ce934a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java deleted file mode 100644 index 38f11640484..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan2; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Atan2PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Atan2PostRequestBody} and sets the default values. - */ - public Atan2PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Atan2PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Atan2PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Atan2PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("xNum", (n) -> { this.setXNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yNum", (n) -> { this.setYNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the xNum property value. The xNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getXNum() { - return this.backingStore.get("xNum"); - } - /** - * Gets the yNum property value. The yNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYNum() { - return this.backingStore.get("yNum"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("xNum", this.getXNum()); - writer.writeObjectValue("yNum", this.getYNum()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the xNum property value. The xNum property - * @param value Value to set for the xNum property. - */ - public void setXNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("xNum", value); - } - /** - * Sets the yNum property value. The yNum property - * @param value Value to set for the yNum property. - */ - public void setYNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java deleted file mode 100644 index 7a9466ef889..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atan2; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java deleted file mode 100644 index 883c31a3ee8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atanh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AtanhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AtanhPostRequestBody} and sets the default values. - */ - public AtanhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AtanhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AtanhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AtanhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java deleted file mode 100644 index d977a4279c4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.atanh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java deleted file mode 100644 index edea6bc0495..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.avedev; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AveDevPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AveDevPostRequestBody} and sets the default values. - */ - public AveDevPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AveDevPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AveDevPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AveDevPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java deleted file mode 100644 index 5193bd68eb5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.avedev; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java deleted file mode 100644 index 88c05cb6ee0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.average; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AveragePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AveragePostRequestBody} and sets the default values. - */ - public AveragePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AveragePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AveragePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AveragePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java deleted file mode 100644 index 700129a9177..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.average; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java deleted file mode 100644 index ffa44c1f9c7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averagea; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageAPostRequestBody} and sets the default values. - */ - public AverageAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AverageAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java deleted file mode 100644 index 8fe22ef26dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averagea; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java deleted file mode 100644 index b8760fe4c05..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageif; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageIfPostRequestBody} and sets the default values. - */ - public AverageIfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AverageIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageIfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the averageRange property value. The averageRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAverageRange() { - return this.backingStore.get("averageRange"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("averageRange", (n) -> { this.setAverageRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("averageRange", this.getAverageRange()); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the averageRange property value. The averageRange property - * @param value Value to set for the averageRange property. - */ - public void setAverageRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("averageRange", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java deleted file mode 100644 index 37c56a92bc2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageif; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java deleted file mode 100644 index f1e4d318ecb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageifs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageIfsPostRequestBody} and sets the default values. - */ - public AverageIfsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AverageIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageIfsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the averageRange property value. The averageRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAverageRange() { - return this.backingStore.get("averageRange"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("averageRange", (n) -> { this.setAverageRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("averageRange", this.getAverageRange()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the averageRange property value. The averageRange property - * @param value Value to set for the averageRange property. - */ - public void setAverageRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("averageRange", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java deleted file mode 100644 index e918cfae290..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.averageifs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java deleted file mode 100644 index a77ccb33a8b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bahttext; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BahtTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BahtTextPostRequestBody} and sets the default values. - */ - public BahtTextPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BahtTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BahtTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BahtTextPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java deleted file mode 100644 index 06cd2075bb4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bahttext; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java deleted file mode 100644 index 258a542f464..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.base; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BasePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BasePostRequestBody} and sets the default values. - */ - public BasePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BasePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BasePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BasePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("minLength", (n) -> { this.setMinLength(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("radix", (n) -> { this.setRadix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the minLength property value. The minLength property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMinLength() { - return this.backingStore.get("minLength"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the radix property value. The radix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRadix() { - return this.backingStore.get("radix"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("minLength", this.getMinLength()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("radix", this.getRadix()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the minLength property value. The minLength property - * @param value Value to set for the minLength property. - */ - public void setMinLength(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("minLength", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the radix property value. The radix property - * @param value Value to set for the radix property. - */ - public void setRadix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("radix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java deleted file mode 100644 index 14ea9f31bf7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.base; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java deleted file mode 100644 index 62210bc61a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besseli; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselIPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselIPostRequestBody} and sets the default values. - */ - public BesselIPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BesselIPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselIPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselIPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java deleted file mode 100644 index 895226a8230..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besseli; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java deleted file mode 100644 index 4ae87449607..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselj; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselJPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselJPostRequestBody} and sets the default values. - */ - public BesselJPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BesselJPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselJPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselJPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java deleted file mode 100644 index 427d1411831..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselj; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java deleted file mode 100644 index 7f597f9ee86..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselk; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselKPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselKPostRequestBody} and sets the default values. - */ - public BesselKPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BesselKPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselKPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselKPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java deleted file mode 100644 index 437ab506735..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.besselk; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java deleted file mode 100644 index 7b0fd189f8d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bessely; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselYPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselYPostRequestBody} and sets the default values. - */ - public BesselYPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BesselYPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselYPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselYPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java deleted file mode 100644 index f28786bd2dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bessely; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java deleted file mode 100644 index ddf7ca61b82..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BetaDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BetaDistPostRequestBody} and sets the default values. - */ - public BetaDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BetaDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BetaDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BetaDistPostRequestBody(); - } - /** - * Gets the A property value. The A property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getA() { - return this.backingStore.get("a"); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the B property value. The B property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getB() { - return this.backingStore.get("b"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("A", (n) -> { this.setA(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("B", (n) -> { this.setB(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("A", this.getA()); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("B", this.getB()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the A property value. The A property - * @param value Value to set for the A property. - */ - public void setA(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("a", value); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the B property value. The B property - * @param value Value to set for the B property. - */ - public void setB(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("b", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java deleted file mode 100644 index 3f79252f8a7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java deleted file mode 100644 index 169681b6120..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BetaInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BetaInvPostRequestBody} and sets the default values. - */ - public BetaInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BetaInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BetaInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BetaInvPostRequestBody(); - } - /** - * Gets the A property value. The A property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getA() { - return this.backingStore.get("a"); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the B property value. The B property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getB() { - return this.backingStore.get("b"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("A", (n) -> { this.setA(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("B", (n) -> { this.setB(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("A", this.getA()); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("B", this.getB()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the A property value. The A property - * @param value Value to set for the A property. - */ - public void setA(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("a", value); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the B property value. The B property - * @param value Value to set for the B property. - */ - public void setB(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("b", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java deleted file mode 100644 index eb2f5abdeec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.beta_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java deleted file mode 100644 index f057a48b299..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2dec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2DecPostRequestBody} and sets the default values. - */ - public Bin2DecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Bin2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2DecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java deleted file mode 100644 index eeee6934ceb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2dec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java deleted file mode 100644 index 09401d705e3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2hex; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2HexPostRequestBody} and sets the default values. - */ - public Bin2HexPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Bin2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2HexPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java deleted file mode 100644 index 6d576300f11..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2hex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java deleted file mode 100644 index 35e58329843..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2oct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2OctPostRequestBody} and sets the default values. - */ - public Bin2OctPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Bin2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2OctPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java deleted file mode 100644 index c38dd7b26a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bin2oct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java deleted file mode 100644 index 59f3fac929a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomDistPostRequestBody} and sets the default values. - */ - public BinomDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BinomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("numberS", this.getNumberS()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java deleted file mode 100644 index af992775179..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java deleted file mode 100644 index d4ddbcbee69..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist_range; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomDistRangePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomDistRangePostRequestBody} and sets the default values. - */ - public BinomDistRangePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BinomDistRangePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomDistRangePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomDistRangePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS2", (n) -> { this.setNumberS2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the numberS2 property value. The numberS2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS2() { - return this.backingStore.get("numberS2"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numberS", this.getNumberS()); - writer.writeObjectValue("numberS2", this.getNumberS2()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the numberS2 property value. The numberS2 property - * @param value Value to set for the numberS2 property. - */ - public void setNumberS2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS2", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java deleted file mode 100644 index 50f31ac9b7f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_dist_range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java deleted file mode 100644 index 594e0736ab0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomInvPostRequestBody} and sets the default values. - */ - public BinomInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BinomInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java deleted file mode 100644 index 5b6e2404a77..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.binom_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java deleted file mode 100644 index 270fd07d21e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitand; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitandPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitandPostRequestBody} and sets the default values. - */ - public BitandPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitandPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitandPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitandPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java deleted file mode 100644 index bf3b65a7532..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitand; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java deleted file mode 100644 index 765b151cc3e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitlshift; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitlshiftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitlshiftPostRequestBody} and sets the default values. - */ - public BitlshiftPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitlshiftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitlshiftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitlshiftPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("shiftAmount", (n) -> { this.setShiftAmount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the shiftAmount property value. The shiftAmount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getShiftAmount() { - return this.backingStore.get("shiftAmount"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("shiftAmount", this.getShiftAmount()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the shiftAmount property value. The shiftAmount property - * @param value Value to set for the shiftAmount property. - */ - public void setShiftAmount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("shiftAmount", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java deleted file mode 100644 index fc89b10c901..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitlshift; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java deleted file mode 100644 index cd65b747bf4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitor; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitorPostRequestBody} and sets the default values. - */ - public BitorPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitorPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java deleted file mode 100644 index 38dfddfa096..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java deleted file mode 100644 index 23aa00f5065..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitrshift; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitrshiftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitrshiftPostRequestBody} and sets the default values. - */ - public BitrshiftPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitrshiftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitrshiftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitrshiftPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("shiftAmount", (n) -> { this.setShiftAmount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the shiftAmount property value. The shiftAmount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getShiftAmount() { - return this.backingStore.get("shiftAmount"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("shiftAmount", this.getShiftAmount()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the shiftAmount property value. The shiftAmount property - * @param value Value to set for the shiftAmount property. - */ - public void setShiftAmount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("shiftAmount", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java deleted file mode 100644 index 011026b3799..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitrshift; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java deleted file mode 100644 index f9e79f4c826..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitxor; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitxorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitxorPostRequestBody} and sets the default values. - */ - public BitxorPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitxorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitxorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitxorPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java deleted file mode 100644 index 99f8cc3ecd4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.bitxor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java deleted file mode 100644 index 3e97c73c3b2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_math; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CeilingMathPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CeilingMathPostRequestBody} and sets the default values. - */ - public CeilingMathPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CeilingMathPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CeilingMathPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CeilingMathPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mode", (n) -> { this.setMode(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mode property value. The mode property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMode() { - return this.backingStore.get("mode"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mode", this.getMode()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mode property value. The mode property - * @param value Value to set for the mode property. - */ - public void setMode(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mode", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java deleted file mode 100644 index 6472ec7c13d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_math; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java deleted file mode 100644 index 8726e276c3c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CeilingPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CeilingPrecisePostRequestBody} and sets the default values. - */ - public CeilingPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CeilingPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CeilingPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CeilingPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java deleted file mode 100644 index df7cc0ab1a5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ceiling_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java deleted file mode 100644 index 5ea221903f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.charescaped; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CharPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CharPostRequestBody} and sets the default values. - */ - public CharPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CharPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CharPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CharPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java deleted file mode 100644 index 4e5609fab0c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.charescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java deleted file mode 100644 index a425ba64b92..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqDistPostRequestBody} and sets the default values. - */ - public ChiSqDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChiSqDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java deleted file mode 100644 index 6280e2e4a15..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java deleted file mode 100644 index d84ad115812..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqDistRTPostRequestBody} and sets the default values. - */ - public ChiSqDistRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChiSqDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqDistRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java deleted file mode 100644 index bca08eacfaa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_dist_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java deleted file mode 100644 index eb42c16e880..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqInvPostRequestBody} and sets the default values. - */ - public ChiSqInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChiSqInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java deleted file mode 100644 index 0ac523a009f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java deleted file mode 100644 index 093efb95b04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqInvRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqInvRTPostRequestBody} and sets the default values. - */ - public ChiSqInvRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChiSqInvRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqInvRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqInvRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java deleted file mode 100644 index 5e20828a6cd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.chisq_inv_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java deleted file mode 100644 index 28284fffab0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.choose; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChoosePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChoosePostRequestBody} and sets the default values. - */ - public ChoosePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChoosePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChoosePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChoosePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("indexNum", (n) -> { this.setIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the indexNum property value. The indexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIndexNum() { - return this.backingStore.get("indexNum"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("indexNum", this.getIndexNum()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the indexNum property value. The indexNum property - * @param value Value to set for the indexNum property. - */ - public void setIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("indexNum", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java deleted file mode 100644 index 9d1ee4b149a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.choose; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java deleted file mode 100644 index d1ac8de8a68..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.clean; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CleanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CleanPostRequestBody} and sets the default values. - */ - public CleanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CleanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CleanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CleanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java deleted file mode 100644 index 81dd934ebc6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.clean; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java deleted file mode 100644 index 50d1aa80482..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.code; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CodePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CodePostRequestBody} and sets the default values. - */ - public CodePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CodePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CodePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CodePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java deleted file mode 100644 index ff4bc2ca35b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.code; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java deleted file mode 100644 index bc754f3c2fb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.columns; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ColumnsPostRequestBody} and sets the default values. - */ - public ColumnsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ColumnsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ColumnsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ColumnsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java deleted file mode 100644 index a00cd699336..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java deleted file mode 100644 index 6a7d432a5de..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.combin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CombinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CombinPostRequestBody} and sets the default values. - */ - public CombinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CombinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CombinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CombinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java deleted file mode 100644 index 306171d5978..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.combin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java deleted file mode 100644 index abec10ee9c0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.combina; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CombinaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CombinaPostRequestBody} and sets the default values. - */ - public CombinaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CombinaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CombinaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CombinaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java deleted file mode 100644 index acf12030529..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.combina; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java deleted file mode 100644 index 73b6f02ac20..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.complex; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ComplexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ComplexPostRequestBody} and sets the default values. - */ - public ComplexPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ComplexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ComplexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ComplexPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("iNum", (n) -> { this.setINum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("realNum", (n) -> { this.setRealNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("suffix", (n) -> { this.setSuffix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the iNum property value. The iNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getINum() { - return this.backingStore.get("iNum"); - } - /** - * Gets the realNum property value. The realNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRealNum() { - return this.backingStore.get("realNum"); - } - /** - * Gets the suffix property value. The suffix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSuffix() { - return this.backingStore.get("suffix"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("iNum", this.getINum()); - writer.writeObjectValue("realNum", this.getRealNum()); - writer.writeObjectValue("suffix", this.getSuffix()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the iNum property value. The iNum property - * @param value Value to set for the iNum property. - */ - public void setINum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("iNum", value); - } - /** - * Sets the realNum property value. The realNum property - * @param value Value to set for the realNum property. - */ - public void setRealNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("realNum", value); - } - /** - * Sets the suffix property value. The suffix property - * @param value Value to set for the suffix property. - */ - public void setSuffix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("suffix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java deleted file mode 100644 index 5606536bf71..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.complex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java deleted file mode 100644 index 27404a71c28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.concatenate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConcatenatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConcatenatePostRequestBody} and sets the default values. - */ - public ConcatenatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ConcatenatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConcatenatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConcatenatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java deleted file mode 100644 index 99054c4bcbb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.concatenate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java deleted file mode 100644 index 4e105c16630..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_norm; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConfidenceNormPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConfidenceNormPostRequestBody} and sets the default values. - */ - public ConfidenceNormPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ConfidenceNormPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConfidenceNormPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConfidenceNormPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("size", (n) -> { this.setSize(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the size property value. The size property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSize() { - return this.backingStore.get("size"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("size", this.getSize()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the size property value. The size property - * @param value Value to set for the size property. - */ - public void setSize(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("size", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java deleted file mode 100644 index 337dd01619b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_norm; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java deleted file mode 100644 index 8d44318dfdc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_t; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConfidenceTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConfidenceTPostRequestBody} and sets the default values. - */ - public ConfidenceTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ConfidenceTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConfidenceTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConfidenceTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("size", (n) -> { this.setSize(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the size property value. The size property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSize() { - return this.backingStore.get("size"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("size", this.getSize()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the size property value. The size property - * @param value Value to set for the size property. - */ - public void setSize(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("size", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java deleted file mode 100644 index e27c353f9f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.confidence_t; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java deleted file mode 100644 index 41313b399cf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.convert; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConvertPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConvertPostRequestBody} and sets the default values. - */ - public ConvertPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ConvertPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConvertPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConvertPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fromUnit", (n) -> { this.setFromUnit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("toUnit", (n) -> { this.setToUnit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fromUnit property value. The fromUnit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFromUnit() { - return this.backingStore.get("fromUnit"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the toUnit property value. The toUnit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getToUnit() { - return this.backingStore.get("toUnit"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fromUnit", this.getFromUnit()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("toUnit", this.getToUnit()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fromUnit property value. The fromUnit property - * @param value Value to set for the fromUnit property. - */ - public void setFromUnit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fromUnit", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the toUnit property value. The toUnit property - * @param value Value to set for the toUnit property. - */ - public void setToUnit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("toUnit", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java deleted file mode 100644 index 77115d539c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.convert; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java deleted file mode 100644 index 83625afa6c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cos; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CosPostRequestBody} and sets the default values. - */ - public CosPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CosPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java deleted file mode 100644 index c10123a4abc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cos; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java deleted file mode 100644 index 5ab3bdfd0c0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cosh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoshPostRequestBody} and sets the default values. - */ - public CoshPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoshPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java deleted file mode 100644 index 52525c2177e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cosh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java deleted file mode 100644 index ebce490d25e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cot; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CotPostRequestBody} and sets the default values. - */ - public CotPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CotPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java deleted file mode 100644 index f3c93e02709..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cot; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java deleted file mode 100644 index 1b5e02766e6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coth; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CothPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CothPostRequestBody} and sets the default values. - */ - public CothPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CothPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CothPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CothPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java deleted file mode 100644 index 35d0f6dd627..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java deleted file mode 100644 index ad5d2869083..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.count; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountPostRequestBody} and sets the default values. - */ - public CountPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java deleted file mode 100644 index 8072a1a8d4f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java deleted file mode 100644 index 748cbebe9ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.counta; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountAPostRequestBody} and sets the default values. - */ - public CountAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java deleted file mode 100644 index 8437d909dfd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.counta; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java deleted file mode 100644 index 5a9330a4ac6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countblank; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountBlankPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountBlankPostRequestBody} and sets the default values. - */ - public CountBlankPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountBlankPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountBlankPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountBlankPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("range", this.getRange()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java deleted file mode 100644 index c78c20e86dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countblank; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java deleted file mode 100644 index d7d4b3740d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countif; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountIfPostRequestBody} and sets the default values. - */ - public CountIfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountIfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java deleted file mode 100644 index dae6e6d43ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countif; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java deleted file mode 100644 index 682e51e40d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countifs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountIfsPostRequestBody} and sets the default values. - */ - public CountIfsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountIfsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java deleted file mode 100644 index 196f288e915..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.countifs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java deleted file mode 100644 index bca0a91d376..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaybs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDayBsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDayBsPostRequestBody} and sets the default values. - */ - public CoupDayBsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupDayBsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDayBsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDayBsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java deleted file mode 100644 index d5870c052d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaybs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java deleted file mode 100644 index f30804c9d7a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdays; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDaysPostRequestBody} and sets the default values. - */ - public CoupDaysPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupDaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDaysPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java deleted file mode 100644 index ce21413c074..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdays; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java deleted file mode 100644 index 737c2b2f738..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaysnc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDaysNcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDaysNcPostRequestBody} and sets the default values. - */ - public CoupDaysNcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupDaysNcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDaysNcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDaysNcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java deleted file mode 100644 index 50e04589e63..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupdaysnc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java deleted file mode 100644 index 04e881de5ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupncd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupNcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupNcdPostRequestBody} and sets the default values. - */ - public CoupNcdPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupNcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupNcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupNcdPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java deleted file mode 100644 index 1bd8f971eba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupncd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java deleted file mode 100644 index 59cd5e8f1c2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupnum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupNumPostRequestBody} and sets the default values. - */ - public CoupNumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupNumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java deleted file mode 100644 index c8a434f8e40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.coupnum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java deleted file mode 100644 index 843800c4721..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.couppcd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupPcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupPcdPostRequestBody} and sets the default values. - */ - public CoupPcdPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupPcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupPcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupPcdPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java deleted file mode 100644 index 8d1bf6c954c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.couppcd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java deleted file mode 100644 index 5bb4c0b475c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.csc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CscPostRequestBody} and sets the default values. - */ - public CscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java deleted file mode 100644 index f484dfd9986..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.csc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java deleted file mode 100644 index ab38df358d6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.csch; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CschPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CschPostRequestBody} and sets the default values. - */ - public CschPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CschPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CschPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CschPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java deleted file mode 100644 index b762edea944..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.csch; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java deleted file mode 100644 index e3b9869fa96..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumipmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CumIPmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CumIPmtPostRequestBody} and sets the default values. - */ - public CumIPmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CumIPmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CumIPmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CumIPmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java deleted file mode 100644 index 3db8c18ecee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumipmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java deleted file mode 100644 index 8a9da48aeaa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumprinc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CumPrincPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CumPrincPostRequestBody} and sets the default values. - */ - public CumPrincPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CumPrincPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CumPrincPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CumPrincPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java deleted file mode 100644 index 635d9ebae94..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.cumprinc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java deleted file mode 100644 index c7654f86552..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.date; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DatePostRequestBody} and sets the default values. - */ - public DatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the day property value. The day property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDay() { - return this.backingStore.get("day"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("day", (n) -> { this.setDay(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("month", (n) -> { this.setMonth(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("year", (n) -> { this.setYear(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the month property value. The month property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonth() { - return this.backingStore.get("month"); - } - /** - * Gets the year property value. The year property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYear() { - return this.backingStore.get("year"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("day", this.getDay()); - writer.writeObjectValue("month", this.getMonth()); - writer.writeObjectValue("year", this.getYear()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the day property value. The day property - * @param value Value to set for the day property. - */ - public void setDay(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("day", value); - } - /** - * Sets the month property value. The month property - * @param value Value to set for the month property. - */ - public void setMonth(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("month", value); - } - /** - * Sets the year property value. The year property - * @param value Value to set for the year property. - */ - public void setYear(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("year", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java deleted file mode 100644 index 362b6846ca8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.date; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java deleted file mode 100644 index 1cbfc27fbf8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.datevalue; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DatevaluePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DatevaluePostRequestBody} and sets the default values. - */ - public DatevaluePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DatevaluePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DatevaluePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DatevaluePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the dateText property value. The dateText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDateText() { - return this.backingStore.get("dateText"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("dateText", (n) -> { this.setDateText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("dateText", this.getDateText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the dateText property value. The dateText property - * @param value Value to set for the dateText property. - */ - public void setDateText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dateText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java deleted file mode 100644 index 3ea3fa38ca0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.datevalue; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java deleted file mode 100644 index a5543825f17..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.daverage; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DaveragePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DaveragePostRequestBody} and sets the default values. - */ - public DaveragePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DaveragePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DaveragePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DaveragePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java deleted file mode 100644 index 570ad060fef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.daverage; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java deleted file mode 100644 index c86be6ef69c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.day; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DayPostRequestBody} and sets the default values. - */ - public DayPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DayPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java deleted file mode 100644 index 464ecdbc0a0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.day; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java deleted file mode 100644 index 6ad0b9c0264..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.days; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DaysPostRequestBody} and sets the default values. - */ - public DaysPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DaysPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java deleted file mode 100644 index ad7eb35a741..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.days; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java deleted file mode 100644 index 9db957cc044..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.days360; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Days360PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Days360PostRequestBody} and sets the default values. - */ - public Days360PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Days360PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Days360PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Days360PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("method", (n) -> { this.setMethod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the method property value. The method property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMethod() { - return this.backingStore.get("method"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("method", this.getMethod()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the method property value. The method property - * @param value Value to set for the method property. - */ - public void setMethod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("method", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java deleted file mode 100644 index 759be5e3bb5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.days360; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java deleted file mode 100644 index b065b71d7ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.db; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DbPostRequestBody} and sets the default values. - */ - public DbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("month", (n) -> { this.setMonth(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the month property value. The month property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonth() { - return this.backingStore.get("month"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("month", this.getMonth()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the month property value. The month property - * @param value Value to set for the month property. - */ - public void setMonth(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("month", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java deleted file mode 100644 index 20e81bdcde7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.db; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java deleted file mode 100644 index e76406f89d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dbcs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DbcsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DbcsPostRequestBody} and sets the default values. - */ - public DbcsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DbcsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DbcsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DbcsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java deleted file mode 100644 index 8a5c734e422..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dbcs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java deleted file mode 100644 index 355375cd835..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcount; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DcountPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DcountPostRequestBody} and sets the default values. - */ - public DcountPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DcountPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DcountPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DcountPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java deleted file mode 100644 index c50270371bf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcount; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java deleted file mode 100644 index fec33eb6746..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcounta; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DcountAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DcountAPostRequestBody} and sets the default values. - */ - public DcountAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DcountAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DcountAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DcountAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java deleted file mode 100644 index 80cceb7438f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dcounta; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java deleted file mode 100644 index ae0c744641f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ddb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DdbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DdbPostRequestBody} and sets the default values. - */ - public DdbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DdbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DdbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DdbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the factor property value. The factor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFactor() { - return this.backingStore.get("factor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("factor", (n) -> { this.setFactor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("factor", this.getFactor()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the factor property value. The factor property - * @param value Value to set for the factor property. - */ - public void setFactor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("factor", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java deleted file mode 100644 index 855bb12f4c7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ddb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java deleted file mode 100644 index c2c6ccf25da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2bin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2BinPostRequestBody} and sets the default values. - */ - public Dec2BinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Dec2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2BinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java deleted file mode 100644 index 44e96bb18cc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2bin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java deleted file mode 100644 index 929f2b8eb96..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2hex; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2HexPostRequestBody} and sets the default values. - */ - public Dec2HexPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Dec2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2HexPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java deleted file mode 100644 index aa3be68a8f6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2hex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java deleted file mode 100644 index 9e2249a659e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2oct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2OctPostRequestBody} and sets the default values. - */ - public Dec2OctPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Dec2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2OctPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java deleted file mode 100644 index a86cc173601..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dec2oct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java deleted file mode 100644 index c9d7a3abfd2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.decimal; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DecimalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DecimalPostRequestBody} and sets the default values. - */ - public DecimalPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DecimalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DecimalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DecimalPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("radix", (n) -> { this.setRadix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the radix property value. The radix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRadix() { - return this.backingStore.get("radix"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("radix", this.getRadix()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the radix property value. The radix property - * @param value Value to set for the radix property. - */ - public void setRadix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("radix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java deleted file mode 100644 index 3e11b02e195..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.decimal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java deleted file mode 100644 index fc5edf4890b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.degrees; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DegreesPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DegreesPostRequestBody} and sets the default values. - */ - public DegreesPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DegreesPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DegreesPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DegreesPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the angle property value. The angle property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAngle() { - return this.backingStore.get("angle"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("angle", (n) -> { this.setAngle(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("angle", this.getAngle()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the angle property value. The angle property - * @param value Value to set for the angle property. - */ - public void setAngle(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("angle", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java deleted file mode 100644 index 316831ababc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.degrees; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java deleted file mode 100644 index 28b33a710b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.delta; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DeltaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DeltaPostRequestBody} and sets the default values. - */ - public DeltaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DeltaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DeltaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DeltaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java deleted file mode 100644 index 199e9e584e5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.delta; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java deleted file mode 100644 index 7493d27dfec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.devsq; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DevSqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DevSqPostRequestBody} and sets the default values. - */ - public DevSqPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DevSqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DevSqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DevSqPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java deleted file mode 100644 index bee00160956..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.devsq; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java deleted file mode 100644 index 7045c7e196b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dget; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DgetPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DgetPostRequestBody} and sets the default values. - */ - public DgetPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DgetPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DgetPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DgetPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java deleted file mode 100644 index 08da48b73a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dget; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java deleted file mode 100644 index ce2a1b38874..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.disc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DiscPostRequestBody} and sets the default values. - */ - public DiscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DiscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java deleted file mode 100644 index 87a0a21c736..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.disc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java deleted file mode 100644 index f66b9426832..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmax; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DmaxPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DmaxPostRequestBody} and sets the default values. - */ - public DmaxPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DmaxPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DmaxPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DmaxPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java deleted file mode 100644 index 66da020f853..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmax; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java deleted file mode 100644 index f6248ecd91b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DminPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DminPostRequestBody} and sets the default values. - */ - public DminPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DminPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DminPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DminPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java deleted file mode 100644 index cf4fb54a605..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dmin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java deleted file mode 100644 index 55cc9e752cf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollar; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarPostRequestBody} and sets the default values. - */ - public DollarPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DollarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimals", this.getDecimals()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java deleted file mode 100644 index e4792fcc137..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollar; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java deleted file mode 100644 index a00124ee74f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarde; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarDePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarDePostRequestBody} and sets the default values. - */ - public DollarDePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DollarDePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarDePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarDePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("fraction", (n) -> { this.setFraction(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("fractionalDollar", (n) -> { this.setFractionalDollar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fraction property value. The fraction property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFraction() { - return this.backingStore.get("fraction"); - } - /** - * Gets the fractionalDollar property value. The fractionalDollar property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFractionalDollar() { - return this.backingStore.get("fractionalDollar"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fraction", this.getFraction()); - writer.writeObjectValue("fractionalDollar", this.getFractionalDollar()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fraction property value. The fraction property - * @param value Value to set for the fraction property. - */ - public void setFraction(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fraction", value); - } - /** - * Sets the fractionalDollar property value. The fractionalDollar property - * @param value Value to set for the fractionalDollar property. - */ - public void setFractionalDollar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fractionalDollar", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java deleted file mode 100644 index 2c9a157f60d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarde; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java deleted file mode 100644 index 662069b2e34..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarfr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarFrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarFrPostRequestBody} and sets the default values. - */ - public DollarFrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DollarFrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarFrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarFrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimalDollar property value. The decimalDollar property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimalDollar() { - return this.backingStore.get("decimalDollar"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimalDollar", (n) -> { this.setDecimalDollar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("fraction", (n) -> { this.setFraction(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fraction property value. The fraction property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFraction() { - return this.backingStore.get("fraction"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimalDollar", this.getDecimalDollar()); - writer.writeObjectValue("fraction", this.getFraction()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimalDollar property value. The decimalDollar property - * @param value Value to set for the decimalDollar property. - */ - public void setDecimalDollar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimalDollar", value); - } - /** - * Sets the fraction property value. The fraction property - * @param value Value to set for the fraction property. - */ - public void setFraction(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fraction", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java deleted file mode 100644 index 13e15557a19..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dollarfr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java deleted file mode 100644 index dbefd1f2b97..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dproduct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DproductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DproductPostRequestBody} and sets the default values. - */ - public DproductPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DproductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DproductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DproductPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java deleted file mode 100644 index 3fe65751007..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dproduct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java deleted file mode 100644 index cd40a3e0f91..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdev; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DstDevPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DstDevPostRequestBody} and sets the default values. - */ - public DstDevPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DstDevPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DstDevPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DstDevPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java deleted file mode 100644 index 23fcbb5b8ad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdev; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java deleted file mode 100644 index 381ac6dd570..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdevp; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DstDevPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DstDevPPostRequestBody} and sets the default values. - */ - public DstDevPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DstDevPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DstDevPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DstDevPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java deleted file mode 100644 index 298725abe5f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dstdevp; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java deleted file mode 100644 index e60774f8c98..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dsum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DsumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DsumPostRequestBody} and sets the default values. - */ - public DsumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DsumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DsumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DsumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java deleted file mode 100644 index 09e7d6591d7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dsum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java deleted file mode 100644 index 657addd0d9d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.duration; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DurationPostRequestBody} and sets the default values. - */ - public DurationPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DurationPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the coupon property value. The coupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoupon() { - return this.backingStore.get("coupon"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("coupon", (n) -> { this.setCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("coupon", this.getCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the coupon property value. The coupon property - * @param value Value to set for the coupon property. - */ - public void setCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java deleted file mode 100644 index 64c009ef8af..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.duration; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java deleted file mode 100644 index b29e35a0211..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvar; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DvarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DvarPostRequestBody} and sets the default values. - */ - public DvarPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DvarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DvarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DvarPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java deleted file mode 100644 index fd49c296f69..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvar; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java deleted file mode 100644 index 5557fcbe24a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvarp; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DvarPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DvarPPostRequestBody} and sets the default values. - */ - public DvarPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DvarPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DvarPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DvarPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java deleted file mode 100644 index 2d2a78c3c9f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.dvarp; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java deleted file mode 100644 index 71a1dadc1ba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ecma_ceiling; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EcmaCeilingPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EcmaCeilingPostRequestBody} and sets the default values. - */ - public EcmaCeilingPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EcmaCeilingPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EcmaCeilingPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EcmaCeilingPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java deleted file mode 100644 index 2d09feb23f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ecma_ceiling; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java deleted file mode 100644 index 62e7ff58476..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.edate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EdatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EdatePostRequestBody} and sets the default values. - */ - public EdatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EdatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EdatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EdatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("months", (n) -> { this.setMonths(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the months property value. The months property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonths() { - return this.backingStore.get("months"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("months", this.getMonths()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the months property value. The months property - * @param value Value to set for the months property. - */ - public void setMonths(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("months", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java deleted file mode 100644 index 7951d657fa8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.edate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java deleted file mode 100644 index c8a9bd160fb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.effect; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EffectPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EffectPostRequestBody} and sets the default values. - */ - public EffectPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EffectPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EffectPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EffectPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("nominalRate", (n) -> { this.setNominalRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("npery", (n) -> { this.setNpery(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nominalRate property value. The nominalRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNominalRate() { - return this.backingStore.get("nominalRate"); - } - /** - * Gets the npery property value. The npery property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNpery() { - return this.backingStore.get("npery"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("nominalRate", this.getNominalRate()); - writer.writeObjectValue("npery", this.getNpery()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the nominalRate property value. The nominalRate property - * @param value Value to set for the nominalRate property. - */ - public void setNominalRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nominalRate", value); - } - /** - * Sets the npery property value. The npery property - * @param value Value to set for the npery property. - */ - public void setNpery(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("npery", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java deleted file mode 100644 index fba1b41ccd4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.effect; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java deleted file mode 100644 index 1ebc110e7ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.eomonth; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EoMonthPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EoMonthPostRequestBody} and sets the default values. - */ - public EoMonthPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EoMonthPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EoMonthPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EoMonthPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("months", (n) -> { this.setMonths(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the months property value. The months property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonths() { - return this.backingStore.get("months"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("months", this.getMonths()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the months property value. The months property - * @param value Value to set for the months property. - */ - public void setMonths(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("months", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java deleted file mode 100644 index 17ec4a3233e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.eomonth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java deleted file mode 100644 index b5c492c88ec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfPostRequestBody} and sets the default values. - */ - public ErfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("lowerLimit", (n) -> { this.setLowerLimit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("upperLimit", (n) -> { this.setUpperLimit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lowerLimit property value. The lowerLimit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLowerLimit() { - return this.backingStore.get("lowerLimit"); - } - /** - * Gets the upperLimit property value. The upperLimit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getUpperLimit() { - return this.backingStore.get("upperLimit"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("lowerLimit", this.getLowerLimit()); - writer.writeObjectValue("upperLimit", this.getUpperLimit()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the lowerLimit property value. The lowerLimit property - * @param value Value to set for the lowerLimit property. - */ - public void setLowerLimit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lowerLimit", value); - } - /** - * Sets the upperLimit property value. The upperLimit property - * @param value Value to set for the upperLimit property. - */ - public void setUpperLimit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("upperLimit", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java deleted file mode 100644 index f07ef4bf835..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java deleted file mode 100644 index 979d4305c3c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfPrecisePostRequestBody} and sets the default values. - */ - public ErfPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErfPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("X", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the X property value. The X property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("X", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the X property value. The X property - * @param value Value to set for the X property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java deleted file mode 100644 index 46455eba30c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erf_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java deleted file mode 100644 index f13b23323ff..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfCPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfCPostRequestBody} and sets the default values. - */ - public ErfCPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErfCPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfCPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfCPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java deleted file mode 100644 index 7a54a3f19a7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java deleted file mode 100644 index 97a02de9097..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfCPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfCPrecisePostRequestBody} and sets the default values. - */ - public ErfCPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErfCPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfCPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfCPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("X", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the X property value. The X property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("X", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the X property value. The X property - * @param value Value to set for the X property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java deleted file mode 100644 index 704aefb0828..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.erfc_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java deleted file mode 100644 index ef0d1ba3273..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.error_type; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErrorTypePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErrorTypePostRequestBody} and sets the default values. - */ - public ErrorTypePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErrorTypePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErrorTypePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErrorTypePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the errorVal property value. The errorVal property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getErrorVal() { - return this.backingStore.get("errorVal"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("errorVal", (n) -> { this.setErrorVal(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("errorVal", this.getErrorVal()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the errorVal property value. The errorVal property - * @param value Value to set for the errorVal property. - */ - public void setErrorVal(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("errorVal", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java deleted file mode 100644 index 54660ba1447..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.error_type; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java deleted file mode 100644 index 9c982a81195..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.even; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EvenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EvenPostRequestBody} and sets the default values. - */ - public EvenPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EvenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EvenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EvenPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java deleted file mode 100644 index c17552f8153..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.even; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java deleted file mode 100644 index 09bf38272ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.exact; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExactPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExactPostRequestBody} and sets the default values. - */ - public ExactPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ExactPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExactPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExactPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("text1", (n) -> { this.setText1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text2", (n) -> { this.setText2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text1 property value. The text1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText1() { - return this.backingStore.get("text1"); - } - /** - * Gets the text2 property value. The text2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText2() { - return this.backingStore.get("text2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text1", this.getText1()); - writer.writeObjectValue("text2", this.getText2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text1 property value. The text1 property - * @param value Value to set for the text1 property. - */ - public void setText1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text1", value); - } - /** - * Sets the text2 property value. The text2 property - * @param value Value to set for the text2 property. - */ - public void setText2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java deleted file mode 100644 index 310a729fbbc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.exact; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java deleted file mode 100644 index 26464d0c730..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.exp; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExpPostRequestBody} and sets the default values. - */ - public ExpPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ExpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExpPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java deleted file mode 100644 index 2de4d98eec4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.exp; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java deleted file mode 100644 index d3662febb27..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.expon_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExponDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExponDistPostRequestBody} and sets the default values. - */ - public ExponDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ExponDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExponDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExponDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lambda", (n) -> { this.setLambda(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lambda property value. The lambda property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLambda() { - return this.backingStore.get("lambda"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("lambda", this.getLambda()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the lambda property value. The lambda property - * @param value Value to set for the lambda property. - */ - public void setLambda(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lambda", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java deleted file mode 100644 index 4633efdb713..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.expon_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java deleted file mode 100644 index cfc2a1c983a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FDistPostRequestBody} and sets the default values. - */ - public FDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java deleted file mode 100644 index e0e8f054218..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java deleted file mode 100644 index ce02be7fca8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FDistRTPostRequestBody} and sets the default values. - */ - public FDistRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FDistRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java deleted file mode 100644 index 4d0b6073cc3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_dist_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java deleted file mode 100644 index c0e757c9ec4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FInvPostRequestBody} and sets the default values. - */ - public FInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java deleted file mode 100644 index 2ced370839a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java deleted file mode 100644 index 62a6c513200..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FInvRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FInvRTPostRequestBody} and sets the default values. - */ - public FInvRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FInvRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FInvRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FInvRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java deleted file mode 100644 index 1f75771bca0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.f_inv_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java deleted file mode 100644 index 96239ebac55..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fact; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FactPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FactPostRequestBody} and sets the default values. - */ - public FactPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FactPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FactPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FactPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java deleted file mode 100644 index e2c34571810..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fact; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java deleted file mode 100644 index 6a99003f41e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.factdouble; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FactDoublePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FactDoublePostRequestBody} and sets the default values. - */ - public FactDoublePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FactDoublePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FactDoublePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FactDoublePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java deleted file mode 100644 index 83043e622e5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.factdouble; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java deleted file mode 100644 index 39ad9ec4470..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.falseescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java deleted file mode 100644 index 4ea80ea0ab2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.find; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FindPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FindPostRequestBody} and sets the default values. - */ - public FindPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FindPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FindPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FindPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("findText", (n) -> { this.setFindText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("withinText", (n) -> { this.setWithinText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the findText property value. The findText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFindText() { - return this.backingStore.get("findText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the withinText property value. The withinText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWithinText() { - return this.backingStore.get("withinText"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("findText", this.getFindText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("withinText", this.getWithinText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the findText property value. The findText property - * @param value Value to set for the findText property. - */ - public void setFindText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("findText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the withinText property value. The withinText property - * @param value Value to set for the withinText property. - */ - public void setWithinText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("withinText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java deleted file mode 100644 index 320794b33cc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.find; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java deleted file mode 100644 index 3a05232b122..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.findb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FindBPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FindBPostRequestBody} and sets the default values. - */ - public FindBPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FindBPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FindBPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FindBPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("findText", (n) -> { this.setFindText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("withinText", (n) -> { this.setWithinText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the findText property value. The findText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFindText() { - return this.backingStore.get("findText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the withinText property value. The withinText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWithinText() { - return this.backingStore.get("withinText"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("findText", this.getFindText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("withinText", this.getWithinText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the findText property value. The findText property - * @param value Value to set for the findText property. - */ - public void setFindText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("findText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the withinText property value. The withinText property - * @param value Value to set for the withinText property. - */ - public void setWithinText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("withinText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java deleted file mode 100644 index 6f3e3fcae60..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.findb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java deleted file mode 100644 index 22ab6857889..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisher; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FisherPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FisherPostRequestBody} and sets the default values. - */ - public FisherPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FisherPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FisherPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FisherPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java deleted file mode 100644 index 9e846d444f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisher; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java deleted file mode 100644 index 246ddd36af1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisherinv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FisherInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FisherInvPostRequestBody} and sets the default values. - */ - public FisherInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FisherInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FisherInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FisherInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("y", (n) -> { this.setY(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the y property value. The y property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getY() { - return this.backingStore.get("y"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("y", this.getY()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the y property value. The y property - * @param value Value to set for the y property. - */ - public void setY(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("y", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java deleted file mode 100644 index 3d6d9367497..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fisherinv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java deleted file mode 100644 index 7e24c2f84b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fixed; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FixedPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FixedPostRequestBody} and sets the default values. - */ - public FixedPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FixedPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FixedPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FixedPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("noCommas", (n) -> { this.setNoCommas(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the noCommas property value. The noCommas property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNoCommas() { - return this.backingStore.get("noCommas"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimals", this.getDecimals()); - writer.writeObjectValue("noCommas", this.getNoCommas()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the noCommas property value. The noCommas property - * @param value Value to set for the noCommas property. - */ - public void setNoCommas(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("noCommas", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java deleted file mode 100644 index 0082d4f58b9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fixed; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java deleted file mode 100644 index 5efd0eefe94..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_math; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FloorMathPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FloorMathPostRequestBody} and sets the default values. - */ - public FloorMathPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FloorMathPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FloorMathPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FloorMathPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mode", (n) -> { this.setMode(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mode property value. The mode property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMode() { - return this.backingStore.get("mode"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mode", this.getMode()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mode property value. The mode property - * @param value Value to set for the mode property. - */ - public void setMode(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mode", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java deleted file mode 100644 index 89f60930efc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_math; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java deleted file mode 100644 index 3bf4f65f38d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FloorPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FloorPrecisePostRequestBody} and sets the default values. - */ - public FloorPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FloorPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FloorPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FloorPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java deleted file mode 100644 index 332360cc090..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.floor_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java deleted file mode 100644 index 805a817b26a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FvPostRequestBody} and sets the default values. - */ - public FvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java deleted file mode 100644 index 9a81ec39207..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java deleted file mode 100644 index ec48b3b3ed0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fvschedule; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FvschedulePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FvschedulePostRequestBody} and sets the default values. - */ - public FvschedulePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FvschedulePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FvschedulePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FvschedulePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("principal", (n) -> { this.setPrincipal(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("schedule", (n) -> { this.setSchedule(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the principal property value. The principal property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPrincipal() { - return this.backingStore.get("principal"); - } - /** - * Gets the schedule property value. The schedule property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSchedule() { - return this.backingStore.get("schedule"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("principal", this.getPrincipal()); - writer.writeObjectValue("schedule", this.getSchedule()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the principal property value. The principal property - * @param value Value to set for the principal property. - */ - public void setPrincipal(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("principal", value); - } - /** - * Sets the schedule property value. The schedule property - * @param value Value to set for the schedule property. - */ - public void setSchedule(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("schedule", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java deleted file mode 100644 index e58825c3fd1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.fvschedule; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java deleted file mode 100644 index 5bc2e4c2092..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaPostRequestBody} and sets the default values. - */ - public GammaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java deleted file mode 100644 index 5948be28698..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java deleted file mode 100644 index 7b6d64696d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaDistPostRequestBody} and sets the default values. - */ - public GammaDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java deleted file mode 100644 index 47f62cf147d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java deleted file mode 100644 index 44d28691e42..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaInvPostRequestBody} and sets the default values. - */ - public GammaInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java deleted file mode 100644 index 145dd0b516f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gamma_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java deleted file mode 100644 index 56fe4740deb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaLnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaLnPostRequestBody} and sets the default values. - */ - public GammaLnPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaLnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaLnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaLnPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java deleted file mode 100644 index 43f3840540c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java deleted file mode 100644 index 7df45690393..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaLnPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaLnPrecisePostRequestBody} and sets the default values. - */ - public GammaLnPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaLnPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaLnPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaLnPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java deleted file mode 100644 index fbbeb0645e1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gammaln_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java deleted file mode 100644 index 0f828c7946f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gauss; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GaussPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GaussPostRequestBody} and sets the default values. - */ - public GaussPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GaussPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GaussPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GaussPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java deleted file mode 100644 index 50fe374223c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gauss; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java deleted file mode 100644 index f95105f36fe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gcd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GcdPostRequestBody} and sets the default values. - */ - public GcdPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GcdPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java deleted file mode 100644 index b5f187ae8a7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gcd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java deleted file mode 100644 index ced15399d62..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.geomean; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GeoMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GeoMeanPostRequestBody} and sets the default values. - */ - public GeoMeanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GeoMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GeoMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GeoMeanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java deleted file mode 100644 index 3fc92fdb450..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.geomean; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java deleted file mode 100644 index 1dfcf48b206..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gestep; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GeStepPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GeStepPostRequestBody} and sets the default values. - */ - public GeStepPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GeStepPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GeStepPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GeStepPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("step", (n) -> { this.setStep(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the step property value. The step property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStep() { - return this.backingStore.get("step"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("step", this.getStep()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the step property value. The step property - * @param value Value to set for the step property. - */ - public void setStep(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("step", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java deleted file mode 100644 index 860dab69f44..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.gestep; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java deleted file mode 100644 index 941f584a3c5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.harmean; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HarMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HarMeanPostRequestBody} and sets the default values. - */ - public HarMeanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HarMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HarMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HarMeanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java deleted file mode 100644 index 4913a69894c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.harmean; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java deleted file mode 100644 index 1ffac989660..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2bin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2BinPostRequestBody} and sets the default values. - */ - public Hex2BinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Hex2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2BinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java deleted file mode 100644 index 17e115db280..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2bin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java deleted file mode 100644 index 19ad6208a51..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2dec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2DecPostRequestBody} and sets the default values. - */ - public Hex2DecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Hex2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2DecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java deleted file mode 100644 index ffd0073ca06..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2dec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java deleted file mode 100644 index 5f066e04cd0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2oct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2OctPostRequestBody} and sets the default values. - */ - public Hex2OctPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Hex2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2OctPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java deleted file mode 100644 index 2c879303719..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hex2oct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java deleted file mode 100644 index 6f5baafc2ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hlookup; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HlookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HlookupPostRequestBody} and sets the default values. - */ - public HlookupPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HlookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HlookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HlookupPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rangeLookup", (n) -> { this.setRangeLookup(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rowIndexNum", (n) -> { this.setRowIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("tableArray", (n) -> { this.setTableArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the rangeLookup property value. The rangeLookup property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRangeLookup() { - return this.backingStore.get("rangeLookup"); - } - /** - * Gets the rowIndexNum property value. The rowIndexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRowIndexNum() { - return this.backingStore.get("rowIndexNum"); - } - /** - * Gets the tableArray property value. The tableArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTableArray() { - return this.backingStore.get("tableArray"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("rangeLookup", this.getRangeLookup()); - writer.writeObjectValue("rowIndexNum", this.getRowIndexNum()); - writer.writeObjectValue("tableArray", this.getTableArray()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the rangeLookup property value. The rangeLookup property - * @param value Value to set for the rangeLookup property. - */ - public void setRangeLookup(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rangeLookup", value); - } - /** - * Sets the rowIndexNum property value. The rowIndexNum property - * @param value Value to set for the rowIndexNum property. - */ - public void setRowIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rowIndexNum", value); - } - /** - * Sets the tableArray property value. The tableArray property - * @param value Value to set for the tableArray property. - */ - public void setTableArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("tableArray", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java deleted file mode 100644 index feeba637d1f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hlookup; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java deleted file mode 100644 index 1a252ae8f52..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hour; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HourPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HourPostRequestBody} and sets the default values. - */ - public HourPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HourPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HourPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HourPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java deleted file mode 100644 index c4f64e892cc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hour; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java deleted file mode 100644 index d5c9a8e9f1e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hyperlink; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HyperlinkPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HyperlinkPostRequestBody} and sets the default values. - */ - public HyperlinkPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HyperlinkPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HyperlinkPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HyperlinkPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("friendlyName", (n) -> { this.setFriendlyName(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("linkLocation", (n) -> { this.setLinkLocation(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the friendlyName property value. The friendlyName property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFriendlyName() { - return this.backingStore.get("friendlyName"); - } - /** - * Gets the linkLocation property value. The linkLocation property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLinkLocation() { - return this.backingStore.get("linkLocation"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("friendlyName", this.getFriendlyName()); - writer.writeObjectValue("linkLocation", this.getLinkLocation()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the friendlyName property value. The friendlyName property - * @param value Value to set for the friendlyName property. - */ - public void setFriendlyName(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("friendlyName", value); - } - /** - * Sets the linkLocation property value. The linkLocation property - * @param value Value to set for the linkLocation property. - */ - public void setLinkLocation(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("linkLocation", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java deleted file mode 100644 index a0709e88ae9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hyperlink; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java deleted file mode 100644 index c5b06c182ba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hypgeom_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HypGeomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HypGeomDistPostRequestBody} and sets the default values. - */ - public HypGeomDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HypGeomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HypGeomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HypGeomDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberPop", (n) -> { this.setNumberPop(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberSample", (n) -> { this.setNumberSample(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("populationS", (n) -> { this.setPopulationS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sampleS", (n) -> { this.setSampleS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberPop property value. The numberPop property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberPop() { - return this.backingStore.get("numberPop"); - } - /** - * Gets the numberSample property value. The numberSample property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberSample() { - return this.backingStore.get("numberSample"); - } - /** - * Gets the populationS property value. The populationS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPopulationS() { - return this.backingStore.get("populationS"); - } - /** - * Gets the sampleS property value. The sampleS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSampleS() { - return this.backingStore.get("sampleS"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("numberPop", this.getNumberPop()); - writer.writeObjectValue("numberSample", this.getNumberSample()); - writer.writeObjectValue("populationS", this.getPopulationS()); - writer.writeObjectValue("sampleS", this.getSampleS()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberPop property value. The numberPop property - * @param value Value to set for the numberPop property. - */ - public void setNumberPop(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberPop", value); - } - /** - * Sets the numberSample property value. The numberSample property - * @param value Value to set for the numberSample property. - */ - public void setNumberSample(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberSample", value); - } - /** - * Sets the populationS property value. The populationS property - * @param value Value to set for the populationS property. - */ - public void setPopulationS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("populationS", value); - } - /** - * Sets the sampleS property value. The sampleS property - * @param value Value to set for the sampleS property. - */ - public void setSampleS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sampleS", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java deleted file mode 100644 index 76984374b9d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.hypgeom_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java deleted file mode 100644 index 054fca37e49..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ifescaped; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IfPostRequestBody} and sets the default values. - */ - public IfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("logicalTest", (n) -> { this.setLogicalTest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("valueIfFalse", (n) -> { this.setValueIfFalse(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("valueIfTrue", (n) -> { this.setValueIfTrue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the logicalTest property value. The logicalTest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLogicalTest() { - return this.backingStore.get("logicalTest"); - } - /** - * Gets the valueIfFalse property value. The valueIfFalse property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValueIfFalse() { - return this.backingStore.get("valueIfFalse"); - } - /** - * Gets the valueIfTrue property value. The valueIfTrue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValueIfTrue() { - return this.backingStore.get("valueIfTrue"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("logicalTest", this.getLogicalTest()); - writer.writeObjectValue("valueIfFalse", this.getValueIfFalse()); - writer.writeObjectValue("valueIfTrue", this.getValueIfTrue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the logicalTest property value. The logicalTest property - * @param value Value to set for the logicalTest property. - */ - public void setLogicalTest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("logicalTest", value); - } - /** - * Sets the valueIfFalse property value. The valueIfFalse property - * @param value Value to set for the valueIfFalse property. - */ - public void setValueIfFalse(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("valueIfFalse", value); - } - /** - * Sets the valueIfTrue property value. The valueIfTrue property - * @param value Value to set for the valueIfTrue property. - */ - public void setValueIfTrue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("valueIfTrue", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java deleted file mode 100644 index c13616fbea8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ifescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java deleted file mode 100644 index 8abb460129f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imabs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImAbsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImAbsPostRequestBody} and sets the default values. - */ - public ImAbsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImAbsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImAbsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImAbsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java deleted file mode 100644 index c0654cc2648..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imabs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java deleted file mode 100644 index a6fc228788e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imaginary; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImaginaryPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImaginaryPostRequestBody} and sets the default values. - */ - public ImaginaryPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImaginaryPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImaginaryPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImaginaryPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java deleted file mode 100644 index 49e0639c8d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imaginary; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java deleted file mode 100644 index 921c88ec0cc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imargument; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImArgumentPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImArgumentPostRequestBody} and sets the default values. - */ - public ImArgumentPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImArgumentPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImArgumentPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImArgumentPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java deleted file mode 100644 index 46dfab55dae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imargument; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java deleted file mode 100644 index 4ba15aa0f65..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imconjugate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImConjugatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImConjugatePostRequestBody} and sets the default values. - */ - public ImConjugatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImConjugatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImConjugatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImConjugatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java deleted file mode 100644 index e25ecbcf292..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imconjugate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java deleted file mode 100644 index d9b716646b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcos; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCosPostRequestBody} and sets the default values. - */ - public ImCosPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCosPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java deleted file mode 100644 index b079959ead8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcos; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java deleted file mode 100644 index d74e55a6d69..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcosh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCoshPostRequestBody} and sets the default values. - */ - public ImCoshPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCoshPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java deleted file mode 100644 index 765ba6cd598..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcosh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java deleted file mode 100644 index c7c9a5f1634..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcot; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCotPostRequestBody} and sets the default values. - */ - public ImCotPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCotPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java deleted file mode 100644 index 54e34677c7f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcot; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java deleted file mode 100644 index 49cbf36b77d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCscPostRequestBody} and sets the default values. - */ - public ImCscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java deleted file mode 100644 index 14f0b59daa1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java deleted file mode 100644 index 563ec6585e3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsch; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCschPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCschPostRequestBody} and sets the default values. - */ - public ImCschPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCschPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCschPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCschPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java deleted file mode 100644 index d4bbfd73e43..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imcsch; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java deleted file mode 100644 index aa0cf655b43..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imdiv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImDivPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImDivPostRequestBody} and sets the default values. - */ - public ImDivPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImDivPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImDivPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImDivPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber1", (n) -> { this.setInumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("inumber2", (n) -> { this.setInumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber1 property value. The inumber1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber1() { - return this.backingStore.get("inumber1"); - } - /** - * Gets the inumber2 property value. The inumber2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber2() { - return this.backingStore.get("inumber2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber1", this.getInumber1()); - writer.writeObjectValue("inumber2", this.getInumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber1 property value. The inumber1 property - * @param value Value to set for the inumber1 property. - */ - public void setInumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber1", value); - } - /** - * Sets the inumber2 property value. The inumber2 property - * @param value Value to set for the inumber2 property. - */ - public void setInumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java deleted file mode 100644 index 666598d5a00..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imdiv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java deleted file mode 100644 index 959bcf462bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imexp; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImExpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImExpPostRequestBody} and sets the default values. - */ - public ImExpPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImExpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImExpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImExpPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java deleted file mode 100644 index 221201d9758..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imexp; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java deleted file mode 100644 index d2b6f33e15f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imln; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLnPostRequestBody} and sets the default values. - */ - public ImLnPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImLnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLnPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java deleted file mode 100644 index e71c3567c7d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imln; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java deleted file mode 100644 index 4f173326108..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog10; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLog10PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLog10PostRequestBody} and sets the default values. - */ - public ImLog10PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImLog10PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLog10PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLog10PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java deleted file mode 100644 index 7a5d18fdeae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog10; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java deleted file mode 100644 index b7cdc87152f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog2; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLog2PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLog2PostRequestBody} and sets the default values. - */ - public ImLog2PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImLog2PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLog2PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLog2PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java deleted file mode 100644 index adf3341e7f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imlog2; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java deleted file mode 100644 index 24f220b52ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.impower; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImPowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImPowerPostRequestBody} and sets the default values. - */ - public ImPowerPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImPowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImPowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImPowerPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java deleted file mode 100644 index 3e5772e5f19..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.impower; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java deleted file mode 100644 index 03fd7a9ed6c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.improduct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImProductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImProductPostRequestBody} and sets the default values. - */ - public ImProductPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImProductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImProductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImProductPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java deleted file mode 100644 index d376f46d21a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.improduct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java deleted file mode 100644 index fc8a67b24cc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imreal; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImRealPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImRealPostRequestBody} and sets the default values. - */ - public ImRealPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImRealPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImRealPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImRealPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java deleted file mode 100644 index 791f3a3d547..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imreal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java deleted file mode 100644 index 38f8840b2dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSecPostRequestBody} and sets the default values. - */ - public ImSecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java deleted file mode 100644 index 11466a498a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java deleted file mode 100644 index b74b615ac71..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsech; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSechPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSechPostRequestBody} and sets the default values. - */ - public ImSechPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSechPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSechPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSechPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java deleted file mode 100644 index 040220f1bfb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsech; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java deleted file mode 100644 index f7862182cc2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSinPostRequestBody} and sets the default values. - */ - public ImSinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java deleted file mode 100644 index 6f178cb3d28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java deleted file mode 100644 index c118c65966b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsinh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSinhPostRequestBody} and sets the default values. - */ - public ImSinhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSinhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java deleted file mode 100644 index 387df254157..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsinh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java deleted file mode 100644 index 99a8eab1dc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsqrt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSqrtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSqrtPostRequestBody} and sets the default values. - */ - public ImSqrtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSqrtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSqrtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSqrtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java deleted file mode 100644 index 4e09cde20f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsqrt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java deleted file mode 100644 index 76638e3d512..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsub; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSubPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSubPostRequestBody} and sets the default values. - */ - public ImSubPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSubPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSubPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSubPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber1", (n) -> { this.setInumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("inumber2", (n) -> { this.setInumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber1 property value. The inumber1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber1() { - return this.backingStore.get("inumber1"); - } - /** - * Gets the inumber2 property value. The inumber2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber2() { - return this.backingStore.get("inumber2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber1", this.getInumber1()); - writer.writeObjectValue("inumber2", this.getInumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber1 property value. The inumber1 property - * @param value Value to set for the inumber1 property. - */ - public void setInumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber1", value); - } - /** - * Sets the inumber2 property value. The inumber2 property - * @param value Value to set for the inumber2 property. - */ - public void setInumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java deleted file mode 100644 index ee0271e0790..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsub; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java deleted file mode 100644 index bd48e337a1c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSumPostRequestBody} and sets the default values. - */ - public ImSumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java deleted file mode 100644 index 3009bdc0292..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imsum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java deleted file mode 100644 index 820b03c79e6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imtan; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImTanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImTanPostRequestBody} and sets the default values. - */ - public ImTanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImTanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImTanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImTanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java deleted file mode 100644 index 2678bf49d7c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.imtan; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java deleted file mode 100644 index 644937b8d74..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.intescaped; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IntPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IntPostRequestBody} and sets the default values. - */ - public IntPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IntPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IntPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IntPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java deleted file mode 100644 index b9fd5589bb6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.intescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java deleted file mode 100644 index 1245a2de304..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.intrate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IntRatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IntRatePostRequestBody} and sets the default values. - */ - public IntRatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IntRatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IntRatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IntRatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("investment", (n) -> { this.setInvestment(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the investment property value. The investment property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInvestment() { - return this.backingStore.get("investment"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("investment", this.getInvestment()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the investment property value. The investment property - * @param value Value to set for the investment property. - */ - public void setInvestment(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("investment", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java deleted file mode 100644 index 7d344f331ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.intrate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java deleted file mode 100644 index 535eba7408c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ipmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IpmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IpmtPostRequestBody} and sets the default values. - */ - public IpmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IpmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IpmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IpmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java deleted file mode 100644 index 2c684426972..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ipmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java deleted file mode 100644 index c0a5c342c96..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.irr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IrrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IrrPostRequestBody} and sets the default values. - */ - public IrrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IrrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IrrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IrrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("guess", this.getGuess()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java deleted file mode 100644 index bbec156da0c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.irr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java deleted file mode 100644 index 070394b71f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsErrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsErrPostRequestBody} and sets the default values. - */ - public IsErrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsErrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsErrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsErrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java deleted file mode 100644 index 8482bee1e46..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java deleted file mode 100644 index 7922032faf1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserror; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsErrorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsErrorPostRequestBody} and sets the default values. - */ - public IsErrorPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsErrorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsErrorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsErrorPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java deleted file mode 100644 index c84cf168dfb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iserror; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java deleted file mode 100644 index cfe5a830ffb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iseven; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsEvenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsEvenPostRequestBody} and sets the default values. - */ - public IsEvenPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsEvenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsEvenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsEvenPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java deleted file mode 100644 index e232cf63f61..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iseven; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java deleted file mode 100644 index 5d938da369f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isformula; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsFormulaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsFormulaPostRequestBody} and sets the default values. - */ - public IsFormulaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsFormulaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsFormulaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsFormulaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java deleted file mode 100644 index b2393ac07a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isformula; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java deleted file mode 100644 index 3b22424ac79..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.islogical; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsLogicalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsLogicalPostRequestBody} and sets the default values. - */ - public IsLogicalPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsLogicalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsLogicalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsLogicalPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java deleted file mode 100644 index e763fb2ef28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.islogical; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java deleted file mode 100644 index 4ce60962fb2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isna; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNAPostRequestBody} and sets the default values. - */ - public IsNAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsNAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java deleted file mode 100644 index c40d6545b44..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isna; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java deleted file mode 100644 index 974f6ccca91..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnontext; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNonTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNonTextPostRequestBody} and sets the default values. - */ - public IsNonTextPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsNonTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNonTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNonTextPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java deleted file mode 100644 index 39096e071b7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnontext; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java deleted file mode 100644 index a0e7e13172c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnumber; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNumberPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNumberPostRequestBody} and sets the default values. - */ - public IsNumberPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsNumberPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNumberPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNumberPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java deleted file mode 100644 index a3e0098213a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isnumber; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java deleted file mode 100644 index fc733a60ced..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iso_ceiling; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsoCeilingPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsoCeilingPostRequestBody} and sets the default values. - */ - public IsoCeilingPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsoCeilingPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsoCeilingPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsoCeilingPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java deleted file mode 100644 index 616d9d6df84..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.iso_ceiling; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java deleted file mode 100644 index 48b6c86d4d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isodd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsOddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsOddPostRequestBody} and sets the default values. - */ - public IsOddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsOddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsOddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsOddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java deleted file mode 100644 index 8b17b7f7b13..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isodd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java deleted file mode 100644 index 9e495b29362..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isoweeknum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsoWeekNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsoWeekNumPostRequestBody} and sets the default values. - */ - public IsoWeekNumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsoWeekNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsoWeekNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsoWeekNumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the date property value. The date property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDate() { - return this.backingStore.get("date"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("date", (n) -> { this.setDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("date", this.getDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the date property value. The date property - * @param value Value to set for the date property. - */ - public void setDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("date", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java deleted file mode 100644 index 77ff02b2b03..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isoweeknum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java deleted file mode 100644 index 801372edc63..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ispmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IspmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IspmtPostRequestBody} and sets the default values. - */ - public IspmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IspmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IspmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IspmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java deleted file mode 100644 index b53d6219e85..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ispmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java deleted file mode 100644 index cf75271412e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isref; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsrefPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsrefPostRequestBody} and sets the default values. - */ - public IsrefPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsrefPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsrefPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsrefPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java deleted file mode 100644 index 96836e1337b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.isref; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java deleted file mode 100644 index 49f97d65912..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.istext; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsTextPostRequestBody} and sets the default values. - */ - public IsTextPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsTextPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java deleted file mode 100644 index 490c79fce78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.istext; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java deleted file mode 100644 index 49b95209b23..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.kurt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class KurtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link KurtPostRequestBody} and sets the default values. - */ - public KurtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link KurtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static KurtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new KurtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java deleted file mode 100644 index 952f2145f8e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.kurt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java deleted file mode 100644 index 5c5604c415b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.large; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LargePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LargePostRequestBody} and sets the default values. - */ - public LargePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LargePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LargePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LargePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java deleted file mode 100644 index c9e53a0d4b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.large; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java deleted file mode 100644 index 71a882e5544..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lcm; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LcmPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LcmPostRequestBody} and sets the default values. - */ - public LcmPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LcmPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LcmPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LcmPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java deleted file mode 100644 index 103911a20f3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lcm; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java deleted file mode 100644 index 8770ee3a9dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.left; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LeftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LeftPostRequestBody} and sets the default values. - */ - public LeftPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LeftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LeftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LeftPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java deleted file mode 100644 index 7c77a7f729a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.left; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java deleted file mode 100644 index f35953a4643..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.leftb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LeftbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LeftbPostRequestBody} and sets the default values. - */ - public LeftbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LeftbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LeftbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LeftbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java deleted file mode 100644 index 792d7487729..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.leftb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java deleted file mode 100644 index 5a0fe4ace60..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.len; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LenPostRequestBody} and sets the default values. - */ - public LenPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LenPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java deleted file mode 100644 index 11c9e9e7cff..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.len; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java deleted file mode 100644 index c2c9850dbd8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lenb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LenbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LenbPostRequestBody} and sets the default values. - */ - public LenbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LenbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LenbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LenbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java deleted file mode 100644 index 41f33c45e3d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lenb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java deleted file mode 100644 index b15139782a2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ln; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LnPostRequestBody} and sets the default values. - */ - public LnPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LnPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java deleted file mode 100644 index 7b5b7e25659..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ln; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java deleted file mode 100644 index e183d92bace..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.log; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogPostRequestBody} and sets the default values. - */ - public LogPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LogPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the base property value. The base property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBase() { - return this.backingStore.get("base"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("base", (n) -> { this.setBase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("base", this.getBase()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the base property value. The base property - * @param value Value to set for the base property. - */ - public void setBase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("base", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java deleted file mode 100644 index b457a47cdbd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.log; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java deleted file mode 100644 index 37a195648a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.log10; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Log10PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Log10PostRequestBody} and sets the default values. - */ - public Log10PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Log10PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Log10PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Log10PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java deleted file mode 100644 index 2139e9f8add..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.log10; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java deleted file mode 100644 index 71fd5c95772..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogNormDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogNormDistPostRequestBody} and sets the default values. - */ - public LogNormDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LogNormDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogNormDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogNormDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java deleted file mode 100644 index 3287639b72e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java deleted file mode 100644 index e034df66e8f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogNormInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogNormInvPostRequestBody} and sets the default values. - */ - public LogNormInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LogNormInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogNormInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogNormInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java deleted file mode 100644 index a4a8b9c3da5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lognorm_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java deleted file mode 100644 index f7ba26eeef5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lookup; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LookupPostRequestBody} and sets the default values. - */ - public LookupPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LookupPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupVector", (n) -> { this.setLookupVector(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("resultVector", (n) -> { this.setResultVector(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the lookupVector property value. The lookupVector property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupVector() { - return this.backingStore.get("lookupVector"); - } - /** - * Gets the resultVector property value. The resultVector property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getResultVector() { - return this.backingStore.get("resultVector"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("lookupVector", this.getLookupVector()); - writer.writeObjectValue("resultVector", this.getResultVector()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the lookupVector property value. The lookupVector property - * @param value Value to set for the lookupVector property. - */ - public void setLookupVector(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupVector", value); - } - /** - * Sets the resultVector property value. The resultVector property - * @param value Value to set for the resultVector property. - */ - public void setResultVector(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("resultVector", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java deleted file mode 100644 index f643b97a928..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lookup; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java deleted file mode 100644 index 788bae38761..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lower; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LowerPostRequestBody} and sets the default values. - */ - public LowerPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LowerPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java deleted file mode 100644 index 38ae0546921..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.lower; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java deleted file mode 100644 index e474c6cf4bf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.match; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MatchPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MatchPostRequestBody} and sets the default values. - */ - public MatchPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MatchPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MatchPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MatchPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("lookupArray", (n) -> { this.setLookupArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("matchType", (n) -> { this.setMatchType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupArray property value. The lookupArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupArray() { - return this.backingStore.get("lookupArray"); - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the matchType property value. The matchType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMatchType() { - return this.backingStore.get("matchType"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("lookupArray", this.getLookupArray()); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("matchType", this.getMatchType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the lookupArray property value. The lookupArray property - * @param value Value to set for the lookupArray property. - */ - public void setLookupArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupArray", value); - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the matchType property value. The matchType property - * @param value Value to set for the matchType property. - */ - public void setMatchType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("matchType", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java deleted file mode 100644 index c2a0655f5c9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.match; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java deleted file mode 100644 index 5cb1a23de72..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.max; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MaxPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MaxPostRequestBody} and sets the default values. - */ - public MaxPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MaxPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MaxPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MaxPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java deleted file mode 100644 index 3c8b00216c8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.max; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java deleted file mode 100644 index 3df40705174..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.maxa; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MaxAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MaxAPostRequestBody} and sets the default values. - */ - public MaxAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MaxAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MaxAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MaxAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java deleted file mode 100644 index 5597c8eefe1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.maxa; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java deleted file mode 100644 index 851f5dc092d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mduration; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MdurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MdurationPostRequestBody} and sets the default values. - */ - public MdurationPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MdurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MdurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MdurationPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the coupon property value. The coupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoupon() { - return this.backingStore.get("coupon"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("coupon", (n) -> { this.setCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("coupon", this.getCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the coupon property value. The coupon property - * @param value Value to set for the coupon property. - */ - public void setCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java deleted file mode 100644 index 00a2304c7fd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mduration; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java deleted file mode 100644 index e9cd8a1a0c0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.median; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MedianPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MedianPostRequestBody} and sets the default values. - */ - public MedianPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MedianPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MedianPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MedianPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java deleted file mode 100644 index 411ae301980..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.median; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java deleted file mode 100644 index 7f32b622d8f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mid; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MidPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MidPostRequestBody} and sets the default values. - */ - public MidPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MidPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MidPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MidPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java deleted file mode 100644 index 71714c4af56..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mid; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java deleted file mode 100644 index e08910719da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.midb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MidbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MidbPostRequestBody} and sets the default values. - */ - public MidbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MidbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MidbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MidbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java deleted file mode 100644 index 08987d99572..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.midb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java deleted file mode 100644 index 68ac93ba783..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.min; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinPostRequestBody} and sets the default values. - */ - public MinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java deleted file mode 100644 index 704d9d8c194..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.min; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java deleted file mode 100644 index b6473239d94..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mina; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinAPostRequestBody} and sets the default values. - */ - public MinAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MinAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java deleted file mode 100644 index 2dd93bcad72..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mina; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java deleted file mode 100644 index ff06e25c69b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.minute; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinutePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinutePostRequestBody} and sets the default values. - */ - public MinutePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MinutePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinutePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinutePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java deleted file mode 100644 index b3a2452b4f6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.minute; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java deleted file mode 100644 index 7c32a869699..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mirr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MirrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MirrPostRequestBody} and sets the default values. - */ - public MirrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MirrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MirrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MirrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("financeRate", (n) -> { this.setFinanceRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("reinvestRate", (n) -> { this.setReinvestRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the financeRate property value. The financeRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFinanceRate() { - return this.backingStore.get("financeRate"); - } - /** - * Gets the reinvestRate property value. The reinvestRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReinvestRate() { - return this.backingStore.get("reinvestRate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("financeRate", this.getFinanceRate()); - writer.writeObjectValue("reinvestRate", this.getReinvestRate()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the financeRate property value. The financeRate property - * @param value Value to set for the financeRate property. - */ - public void setFinanceRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("financeRate", value); - } - /** - * Sets the reinvestRate property value. The reinvestRate property - * @param value Value to set for the reinvestRate property. - */ - public void setReinvestRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reinvestRate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java deleted file mode 100644 index 72c5646f244..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mirr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java deleted file mode 100644 index b7f6f540ade..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mod; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ModPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ModPostRequestBody} and sets the default values. - */ - public ModPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ModPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ModPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ModPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the divisor property value. The divisor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDivisor() { - return this.backingStore.get("divisor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("divisor", (n) -> { this.setDivisor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("divisor", this.getDivisor()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the divisor property value. The divisor property - * @param value Value to set for the divisor property. - */ - public void setDivisor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("divisor", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java deleted file mode 100644 index e831c734718..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mod; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java deleted file mode 100644 index 3a85f32fa9c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.month; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MonthPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MonthPostRequestBody} and sets the default values. - */ - public MonthPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MonthPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MonthPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MonthPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java deleted file mode 100644 index f25f3b3ed6b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.month; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java deleted file mode 100644 index 96cd63f404f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mround; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MroundPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MroundPostRequestBody} and sets the default values. - */ - public MroundPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MroundPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MroundPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MroundPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("multiple", (n) -> { this.setMultiple(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the multiple property value. The multiple property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMultiple() { - return this.backingStore.get("multiple"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("multiple", this.getMultiple()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the multiple property value. The multiple property - * @param value Value to set for the multiple property. - */ - public void setMultiple(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("multiple", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java deleted file mode 100644 index c48c36f1b16..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.mround; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java deleted file mode 100644 index 7c2a03e01fc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.multinomial; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MultiNomialPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MultiNomialPostRequestBody} and sets the default values. - */ - public MultiNomialPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MultiNomialPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MultiNomialPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MultiNomialPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java deleted file mode 100644 index c49775f2f89..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.multinomial; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java deleted file mode 100644 index 11d99d392f1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.n; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NPostRequestBody} and sets the default values. - */ - public NPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java deleted file mode 100644 index 17891729d02..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.n; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java deleted file mode 100644 index 614a92a94a0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.na; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java deleted file mode 100644 index a1c13a73156..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.negbinom_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NegBinomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NegBinomDistPostRequestBody} and sets the default values. - */ - public NegBinomDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NegBinomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NegBinomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NegBinomDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberF", (n) -> { this.setNumberF(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberF property value. The numberF property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberF() { - return this.backingStore.get("numberF"); - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("numberF", this.getNumberF()); - writer.writeObjectValue("numberS", this.getNumberS()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberF property value. The numberF property - * @param value Value to set for the numberF property. - */ - public void setNumberF(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberF", value); - } - /** - * Sets the numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java deleted file mode 100644 index 0613fd1ce9e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.negbinom_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java deleted file mode 100644 index 37de48c7d78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NetworkDaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NetworkDaysPostRequestBody} and sets the default values. - */ - public NetworkDaysPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NetworkDaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NetworkDaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NetworkDaysPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java deleted file mode 100644 index 37c1ccabef8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java deleted file mode 100644 index f7b607b79fc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays_intl; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NetworkDaysIntlPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NetworkDaysIntlPostRequestBody} and sets the default values. - */ - public NetworkDaysIntlPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NetworkDaysIntlPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NetworkDaysIntlPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NetworkDaysIntlPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("weekend", (n) -> { this.setWeekend(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Gets the weekend property value. The weekend property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWeekend() { - return this.backingStore.get("weekend"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeObjectValue("weekend", this.getWeekend()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } - /** - * Sets the weekend property value. The weekend property - * @param value Value to set for the weekend property. - */ - public void setWeekend(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("weekend", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java deleted file mode 100644 index c4607a989c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.networkdays_intl; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java deleted file mode 100644 index cd69e2dc11b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.nominal; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NominalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NominalPostRequestBody} and sets the default values. - */ - public NominalPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NominalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NominalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NominalPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the effectRate property value. The effectRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEffectRate() { - return this.backingStore.get("effectRate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("effectRate", (n) -> { this.setEffectRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("npery", (n) -> { this.setNpery(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the npery property value. The npery property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNpery() { - return this.backingStore.get("npery"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("effectRate", this.getEffectRate()); - writer.writeObjectValue("npery", this.getNpery()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the effectRate property value. The effectRate property - * @param value Value to set for the effectRate property. - */ - public void setEffectRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("effectRate", value); - } - /** - * Sets the npery property value. The npery property - * @param value Value to set for the npery property. - */ - public void setNpery(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("npery", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java deleted file mode 100644 index 1cee2b3fcb5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.nominal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java deleted file mode 100644 index 7f1c3273f49..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormDistPostRequestBody} and sets the default values. - */ - public NormDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NormDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java deleted file mode 100644 index cee1ffb4b3e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java deleted file mode 100644 index 497c1efa7ba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormInvPostRequestBody} and sets the default values. - */ - public NormInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NormInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java deleted file mode 100644 index 3639eb8da2d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java deleted file mode 100644 index 264d9532be7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormSDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormSDistPostRequestBody} and sets the default values. - */ - public NormSDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NormSDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormSDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormSDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("z", (n) -> { this.setZ(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the z property value. The z property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getZ() { - return this.backingStore.get("z"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("z", this.getZ()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the z property value. The z property - * @param value Value to set for the z property. - */ - public void setZ(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("z", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java deleted file mode 100644 index 2faf5e7d1ec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java deleted file mode 100644 index a9467dcc56e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormSInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormSInvPostRequestBody} and sets the default values. - */ - public NormSInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NormSInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormSInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormSInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java deleted file mode 100644 index 6f8b7b8780a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.norm_s_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java deleted file mode 100644 index 57c148bbdf3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.not; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NotPostRequestBody} and sets the default values. - */ - public NotPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NotPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("logical", (n) -> { this.setLogical(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the logical property value. The logical property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLogical() { - return this.backingStore.get("logical"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("logical", this.getLogical()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the logical property value. The logical property - * @param value Value to set for the logical property. - */ - public void setLogical(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("logical", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java deleted file mode 100644 index bdefc248985..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.not; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java deleted file mode 100644 index a52d55beec5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.now; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java deleted file mode 100644 index 7fef50c0135..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.nper; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NperPostRequestBody} and sets the default values. - */ - public NperPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NperPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java deleted file mode 100644 index 1329a12aa23..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.nper; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java deleted file mode 100644 index a3e4908e1be..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.npv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NpvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NpvPostRequestBody} and sets the default values. - */ - public NpvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NpvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NpvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NpvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java deleted file mode 100644 index a74b4b4ec89..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.npv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java deleted file mode 100644 index 8983433bacd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.numbervalue; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NumberValuePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NumberValuePostRequestBody} and sets the default values. - */ - public NumberValuePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NumberValuePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NumberValuePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NumberValuePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimalSeparator property value. The decimalSeparator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimalSeparator() { - return this.backingStore.get("decimalSeparator"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("decimalSeparator", (n) -> { this.setDecimalSeparator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("groupSeparator", (n) -> { this.setGroupSeparator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the groupSeparator property value. The groupSeparator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGroupSeparator() { - return this.backingStore.get("groupSeparator"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimalSeparator", this.getDecimalSeparator()); - writer.writeObjectValue("groupSeparator", this.getGroupSeparator()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimalSeparator property value. The decimalSeparator property - * @param value Value to set for the decimalSeparator property. - */ - public void setDecimalSeparator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimalSeparator", value); - } - /** - * Sets the groupSeparator property value. The groupSeparator property - * @param value Value to set for the groupSeparator property. - */ - public void setGroupSeparator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("groupSeparator", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java deleted file mode 100644 index e31c9905d24..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.numbervalue; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java deleted file mode 100644 index 2c84aa3d055..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2bin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2BinPostRequestBody} and sets the default values. - */ - public Oct2BinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Oct2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2BinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java deleted file mode 100644 index 0abada0526d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2bin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java deleted file mode 100644 index 90a1aa33d1e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2dec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2DecPostRequestBody} and sets the default values. - */ - public Oct2DecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Oct2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2DecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java deleted file mode 100644 index f1c8fefa5f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2dec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java deleted file mode 100644 index 32ffc2ac9ae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2hex; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2HexPostRequestBody} and sets the default values. - */ - public Oct2HexPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Oct2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2HexPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java deleted file mode 100644 index 2a9024d077b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oct2hex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java deleted file mode 100644 index 5c70c4ad5a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.odd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddPostRequestBody} and sets the default values. - */ - public OddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java deleted file mode 100644 index d742d11f1e3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.odd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java deleted file mode 100644 index 97aefc889e7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java +++ /dev/null @@ -1,244 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfprice; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddFPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddFPricePostRequestBody} and sets the default values. - */ - public OddFPricePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddFPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddFPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddFPricePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(9); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstCoupon", (n) -> { this.setFirstCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstCoupon property value. The firstCoupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstCoupon() { - return this.backingStore.get("firstCoupon"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("firstCoupon", this.getFirstCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the firstCoupon property value. The firstCoupon property - * @param value Value to set for the firstCoupon property. - */ - public void setFirstCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstCoupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java deleted file mode 100644 index 9e902a5c141..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfprice; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java deleted file mode 100644 index f27c79bcffd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java +++ /dev/null @@ -1,244 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfyield; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddFYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddFYieldPostRequestBody} and sets the default values. - */ - public OddFYieldPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddFYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddFYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddFYieldPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(9); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstCoupon", (n) -> { this.setFirstCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstCoupon property value. The firstCoupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstCoupon() { - return this.backingStore.get("firstCoupon"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("firstCoupon", this.getFirstCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the firstCoupon property value. The firstCoupon property - * @param value Value to set for the firstCoupon property. - */ - public void setFirstCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstCoupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java deleted file mode 100644 index 036d8ba5c85..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddfyield; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java deleted file mode 100644 index fc5a9c91ced..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlprice; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddLPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddLPricePostRequestBody} and sets the default values. - */ - public OddLPricePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddLPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddLPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddLPricePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lastInterest", (n) -> { this.setLastInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the lastInterest property value. The lastInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLastInterest() { - return this.backingStore.get("lastInterest"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("lastInterest", this.getLastInterest()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the lastInterest property value. The lastInterest property - * @param value Value to set for the lastInterest property. - */ - public void setLastInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lastInterest", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java deleted file mode 100644 index de06ef1d2d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlprice; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java deleted file mode 100644 index 45f4d0a44f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlyield; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddLYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddLYieldPostRequestBody} and sets the default values. - */ - public OddLYieldPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddLYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddLYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddLYieldPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lastInterest", (n) -> { this.setLastInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the lastInterest property value. The lastInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLastInterest() { - return this.backingStore.get("lastInterest"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("lastInterest", this.getLastInterest()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the lastInterest property value. The lastInterest property - * @param value Value to set for the lastInterest property. - */ - public void setLastInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lastInterest", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java deleted file mode 100644 index 0c3d5d013c2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.oddlyield; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java deleted file mode 100644 index 3365514a607..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.or; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OrPostRequestBody} and sets the default values. - */ - public OrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java deleted file mode 100644 index 2842b97c99f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.or; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java deleted file mode 100644 index 82219ff203b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pduration; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PdurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PdurationPostRequestBody} and sets the default values. - */ - public PdurationPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PdurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PdurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PdurationPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java deleted file mode 100644 index 9e04dd3a438..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pduration; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java deleted file mode 100644 index cf7538a5467..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_exc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentileExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentileExcPostRequestBody} and sets the default values. - */ - public PercentileExcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PercentileExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentileExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentileExcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java deleted file mode 100644 index e041377883d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_exc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java deleted file mode 100644 index 6eb7712e78c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_inc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentileIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentileIncPostRequestBody} and sets the default values. - */ - public PercentileIncPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PercentileIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentileIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentileIncPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java deleted file mode 100644 index 286874fd0e7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentile_inc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java deleted file mode 100644 index 1bb8de7c9b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_exc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentRankExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentRankExcPostRequestBody} and sets the default values. - */ - public PercentRankExcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PercentRankExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentRankExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentRankExcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java deleted file mode 100644 index b933b38246f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_exc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java deleted file mode 100644 index 598a718e4f0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_inc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentRankIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentRankIncPostRequestBody} and sets the default values. - */ - public PercentRankIncPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PercentRankIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentRankIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentRankIncPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java deleted file mode 100644 index d84100f5842..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.percentrank_inc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java deleted file mode 100644 index 31c7a7cbff6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.permut; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermutPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PermutPostRequestBody} and sets the default values. - */ - public PermutPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PermutPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PermutPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PermutPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java deleted file mode 100644 index ac3d2eebf3a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.permut; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java deleted file mode 100644 index 1466438f085..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.permutationa; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermutationaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PermutationaPostRequestBody} and sets the default values. - */ - public PermutationaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PermutationaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PermutationaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PermutationaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java deleted file mode 100644 index 96b19280e9c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.permutationa; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java deleted file mode 100644 index 73d9fd51be8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.phi; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PhiPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PhiPostRequestBody} and sets the default values. - */ - public PhiPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PhiPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PhiPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PhiPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java deleted file mode 100644 index be5c81355b7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.phi; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java deleted file mode 100644 index 73e9ceea5f5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pi; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java deleted file mode 100644 index 9ce7440bab1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PmtPostRequestBody} and sets the default values. - */ - public PmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java deleted file mode 100644 index 8b6fa463ead..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java deleted file mode 100644 index 81d7b79b0ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.poisson_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PoissonDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PoissonDistPostRequestBody} and sets the default values. - */ - public PoissonDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PoissonDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PoissonDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PoissonDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java deleted file mode 100644 index 224e1c741da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.poisson_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java deleted file mode 100644 index 6c729005dc6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.power; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PowerPostRequestBody} and sets the default values. - */ - public PowerPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PowerPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("power", (n) -> { this.setPower(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the power property value. The power property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPower() { - return this.backingStore.get("power"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("power", this.getPower()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the power property value. The power property - * @param value Value to set for the power property. - */ - public void setPower(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("power", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java deleted file mode 100644 index be35e2f6b83..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.power; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java deleted file mode 100644 index b1e7a0d9635..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ppmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PpmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PpmtPostRequestBody} and sets the default values. - */ - public PpmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PpmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PpmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PpmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java deleted file mode 100644 index cbabc459342..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.ppmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java deleted file mode 100644 index c5c776d983d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.price; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PricePostRequestBody} and sets the default values. - */ - public PricePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PricePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java deleted file mode 100644 index 4b53f0332fb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.price; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java deleted file mode 100644 index 8c5febbc481..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricedisc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PriceDiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PriceDiscPostRequestBody} and sets the default values. - */ - public PriceDiscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PriceDiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PriceDiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PriceDiscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java deleted file mode 100644 index 625172b90be..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricedisc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java deleted file mode 100644 index 9b416c1a4a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricemat; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PriceMatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PriceMatPostRequestBody} and sets the default values. - */ - public PriceMatPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PriceMatPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PriceMatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PriceMatPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java deleted file mode 100644 index 0763523871c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pricemat; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java deleted file mode 100644 index 425d33aeb68..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.product; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ProductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ProductPostRequestBody} and sets the default values. - */ - public ProductPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ProductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ProductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ProductPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java deleted file mode 100644 index 89a569108ed..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.product; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java deleted file mode 100644 index 4f489957574..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.proper; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ProperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ProperPostRequestBody} and sets the default values. - */ - public ProperPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ProperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ProperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ProperPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java deleted file mode 100644 index 4ce5a3fce59..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.proper; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java deleted file mode 100644 index 3cff039985a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PvPostRequestBody} and sets the default values. - */ - public PvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java deleted file mode 100644 index c4ee872b6a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.pv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java deleted file mode 100644 index f1789bf609b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_exc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuartileExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuartileExcPostRequestBody} and sets the default values. - */ - public QuartileExcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link QuartileExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuartileExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuartileExcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("quart", (n) -> { this.setQuart(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the quart property value. The quart property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getQuart() { - return this.backingStore.get("quart"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("quart", this.getQuart()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the quart property value. The quart property - * @param value Value to set for the quart property. - */ - public void setQuart(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("quart", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java deleted file mode 100644 index 0589757a876..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_exc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java deleted file mode 100644 index bd731588356..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_inc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuartileIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuartileIncPostRequestBody} and sets the default values. - */ - public QuartileIncPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link QuartileIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuartileIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuartileIncPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("quart", (n) -> { this.setQuart(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the quart property value. The quart property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getQuart() { - return this.backingStore.get("quart"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("quart", this.getQuart()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the quart property value. The quart property - * @param value Value to set for the quart property. - */ - public void setQuart(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("quart", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java deleted file mode 100644 index 6971a85786d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quartile_inc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java deleted file mode 100644 index fb73b5d7302..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quotient; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuotientPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuotientPostRequestBody} and sets the default values. - */ - public QuotientPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link QuotientPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuotientPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuotientPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the denominator property value. The denominator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDenominator() { - return this.backingStore.get("denominator"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("denominator", (n) -> { this.setDenominator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numerator", (n) -> { this.setNumerator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numerator property value. The numerator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumerator() { - return this.backingStore.get("numerator"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("denominator", this.getDenominator()); - writer.writeObjectValue("numerator", this.getNumerator()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the denominator property value. The denominator property - * @param value Value to set for the denominator property. - */ - public void setDenominator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("denominator", value); - } - /** - * Sets the numerator property value. The numerator property - * @param value Value to set for the numerator property. - */ - public void setNumerator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numerator", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java deleted file mode 100644 index 2ac904487f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.quotient; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java deleted file mode 100644 index 8bbeda5d778..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.radians; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RadiansPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RadiansPostRequestBody} and sets the default values. - */ - public RadiansPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RadiansPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RadiansPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RadiansPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the angle property value. The angle property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAngle() { - return this.backingStore.get("angle"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("angle", (n) -> { this.setAngle(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("angle", this.getAngle()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the angle property value. The angle property - * @param value Value to set for the angle property. - */ - public void setAngle(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("angle", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java deleted file mode 100644 index 45f301322d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.radians; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java deleted file mode 100644 index 927ea62c378..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rand; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java deleted file mode 100644 index c53afd95b0a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.randbetween; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RandBetweenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RandBetweenPostRequestBody} and sets the default values. - */ - public RandBetweenPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RandBetweenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RandBetweenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RandBetweenPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the bottom property value. The bottom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBottom() { - return this.backingStore.get("bottom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("bottom", (n) -> { this.setBottom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("top", (n) -> { this.setTop(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the top property value. The top property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTop() { - return this.backingStore.get("top"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("bottom", this.getBottom()); - writer.writeObjectValue("top", this.getTop()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the bottom property value. The bottom property - * @param value Value to set for the bottom property. - */ - public void setBottom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("bottom", value); - } - /** - * Sets the top property value. The top property - * @param value Value to set for the top property. - */ - public void setTop(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("top", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java deleted file mode 100644 index 87cf9040ae9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.randbetween; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java deleted file mode 100644 index 9d690aa0b78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_avg; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RankAvgPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RankAvgPostRequestBody} and sets the default values. - */ - public RankAvgPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RankAvgPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RankAvgPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RankAvgPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("order", (n) -> { this.setOrder(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("ref", (n) -> { this.setRef(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the order property value. The order property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOrder() { - return this.backingStore.get("order"); - } - /** - * Gets the ref property value. The ref property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRef() { - return this.backingStore.get("ref"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("order", this.getOrder()); - writer.writeObjectValue("ref", this.getRef()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the order property value. The order property - * @param value Value to set for the order property. - */ - public void setOrder(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("order", value); - } - /** - * Sets the ref property value. The ref property - * @param value Value to set for the ref property. - */ - public void setRef(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("ref", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java deleted file mode 100644 index 441eefe66a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_avg; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java deleted file mode 100644 index 4f00844b212..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_eq; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RankEqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RankEqPostRequestBody} and sets the default values. - */ - public RankEqPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RankEqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RankEqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RankEqPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("order", (n) -> { this.setOrder(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("ref", (n) -> { this.setRef(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the order property value. The order property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOrder() { - return this.backingStore.get("order"); - } - /** - * Gets the ref property value. The ref property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRef() { - return this.backingStore.get("ref"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("order", this.getOrder()); - writer.writeObjectValue("ref", this.getRef()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the order property value. The order property - * @param value Value to set for the order property. - */ - public void setOrder(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("order", value); - } - /** - * Sets the ref property value. The ref property - * @param value Value to set for the ref property. - */ - public void setRef(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("ref", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java deleted file mode 100644 index 93efb9f8347..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rank_eq; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java deleted file mode 100644 index 32ac13380b3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RatePostRequestBody} and sets the default values. - */ - public RatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("guess", this.getGuess()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java deleted file mode 100644 index 69a8e1084d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java deleted file mode 100644 index 62b92915612..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.received; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReceivedPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReceivedPostRequestBody} and sets the default values. - */ - public ReceivedPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ReceivedPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReceivedPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReceivedPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("investment", (n) -> { this.setInvestment(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the investment property value. The investment property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInvestment() { - return this.backingStore.get("investment"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("investment", this.getInvestment()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the investment property value. The investment property - * @param value Value to set for the investment property. - */ - public void setInvestment(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("investment", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java deleted file mode 100644 index 994076174da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.received; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java deleted file mode 100644 index 681f2fed8b7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.replace; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReplacePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReplacePostRequestBody} and sets the default values. - */ - public ReplacePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ReplacePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReplacePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReplacePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("newText", this.getNewText()); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java deleted file mode 100644 index 9f33b09a6f0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.replace; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java deleted file mode 100644 index edf4c1d89ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.replaceb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReplaceBPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReplaceBPostRequestBody} and sets the default values. - */ - public ReplaceBPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ReplaceBPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReplaceBPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReplaceBPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("newText", this.getNewText()); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java deleted file mode 100644 index d6ac6bca8c2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.replaceb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java deleted file mode 100644 index 8451033f157..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rept; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReptPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReptPostRequestBody} and sets the default values. - */ - public ReptPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ReptPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReptPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReptPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numberTimes", (n) -> { this.setNumberTimes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberTimes property value. The numberTimes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberTimes() { - return this.backingStore.get("numberTimes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numberTimes", this.getNumberTimes()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numberTimes property value. The numberTimes property - * @param value Value to set for the numberTimes property. - */ - public void setNumberTimes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberTimes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java deleted file mode 100644 index 2a047baaa05..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rept; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java deleted file mode 100644 index f6ed52a1fc7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.right; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RightPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RightPostRequestBody} and sets the default values. - */ - public RightPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RightPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RightPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RightPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java deleted file mode 100644 index a151fef8c5a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.right; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java deleted file mode 100644 index 99564836626..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rightb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RightbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RightbPostRequestBody} and sets the default values. - */ - public RightbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RightbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RightbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RightbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java deleted file mode 100644 index 30b8ffed7aa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rightb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java deleted file mode 100644 index 4a0e986577f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.roman; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RomanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RomanPostRequestBody} and sets the default values. - */ - public RomanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RomanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RomanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RomanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("form", (n) -> { this.setForm(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the form property value. The form property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getForm() { - return this.backingStore.get("form"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("form", this.getForm()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the form property value. The form property - * @param value Value to set for the form property. - */ - public void setForm(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("form", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java deleted file mode 100644 index 5d1bc0dd9d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.roman; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java deleted file mode 100644 index 651f750c689..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.round; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundPostRequestBody} and sets the default values. - */ - public RoundPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RoundPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java deleted file mode 100644 index a5eb9070222..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.round; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java deleted file mode 100644 index c3317d51395..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rounddown; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundDownPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundDownPostRequestBody} and sets the default values. - */ - public RoundDownPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RoundDownPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundDownPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundDownPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java deleted file mode 100644 index 05777277b57..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rounddown; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java deleted file mode 100644 index 7243c5c3254..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.roundup; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundUpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundUpPostRequestBody} and sets the default values. - */ - public RoundUpPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RoundUpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundUpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundUpPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java deleted file mode 100644 index 0e6f7e3aff5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.roundup; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java deleted file mode 100644 index 6df617e5936..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rows; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RowsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RowsPostRequestBody} and sets the default values. - */ - public RowsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RowsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RowsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RowsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java deleted file mode 100644 index 8b8857a72a9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java deleted file mode 100644 index 2294f31ab2a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rri; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RriPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RriPostRequestBody} and sets the default values. - */ - public RriPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RriPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RriPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RriPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java deleted file mode 100644 index 4431d90ed09..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.rri; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java deleted file mode 100644 index 379a53932f6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SecPostRequestBody} and sets the default values. - */ - public SecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java deleted file mode 100644 index fc3eae32022..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java deleted file mode 100644 index c3b2f703f09..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sech; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SechPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SechPostRequestBody} and sets the default values. - */ - public SechPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SechPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SechPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SechPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java deleted file mode 100644 index 454cc8401c2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sech; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java deleted file mode 100644 index 7eaf8d09bcd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.second; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SecondPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SecondPostRequestBody} and sets the default values. - */ - public SecondPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SecondPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SecondPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SecondPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java deleted file mode 100644 index 2d36957756f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.second; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java deleted file mode 100644 index 09a913d1d2e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.seriessum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SeriesSumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SeriesSumPostRequestBody} and sets the default values. - */ - public SeriesSumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SeriesSumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SeriesSumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SeriesSumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the coefficients property value. The coefficients property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoefficients() { - return this.backingStore.get("coefficients"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("coefficients", (n) -> { this.setCoefficients(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("m", (n) -> { this.setM(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the m property value. The m property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getM() { - return this.backingStore.get("m"); - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("coefficients", this.getCoefficients()); - writer.writeObjectValue("m", this.getM()); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the coefficients property value. The coefficients property - * @param value Value to set for the coefficients property. - */ - public void setCoefficients(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coefficients", value); - } - /** - * Sets the m property value. The m property - * @param value Value to set for the m property. - */ - public void setM(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("m", value); - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java deleted file mode 100644 index 41c20197497..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.seriessum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java deleted file mode 100644 index b9f0839348b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheet; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SheetPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SheetPostRequestBody} and sets the default values. - */ - public SheetPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SheetPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SheetPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SheetPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java deleted file mode 100644 index 9fafbaaa426..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java deleted file mode 100644 index d5ff3d22bda..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheets; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SheetsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SheetsPostRequestBody} and sets the default values. - */ - public SheetsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SheetsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SheetsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SheetsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java deleted file mode 100644 index eddd3012b3d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sheets; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java deleted file mode 100644 index 966f3631c53..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sign; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SignPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SignPostRequestBody} and sets the default values. - */ - public SignPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SignPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SignPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SignPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java deleted file mode 100644 index a1f4cf26e37..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sign; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java deleted file mode 100644 index 5d824d273f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SinPostRequestBody} and sets the default values. - */ - public SinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java deleted file mode 100644 index 8d03278f4f1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java deleted file mode 100644 index 02db2087ea6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sinh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SinhPostRequestBody} and sets the default values. - */ - public SinhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SinhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java deleted file mode 100644 index d53cc86e554..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sinh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java deleted file mode 100644 index 00de74f00a3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SkewPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SkewPostRequestBody} and sets the default values. - */ - public SkewPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SkewPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SkewPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SkewPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java deleted file mode 100644 index b99a474fe9a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java deleted file mode 100644 index a7e84eb7f78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew_p; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SkewPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SkewPPostRequestBody} and sets the default values. - */ - public SkewPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SkewPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SkewPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SkewPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java deleted file mode 100644 index 322dfe34d3a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.skew_p; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java deleted file mode 100644 index 92b3133bd6d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sln; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SlnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SlnPostRequestBody} and sets the default values. - */ - public SlnPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SlnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SlnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SlnPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java deleted file mode 100644 index 208ab03e30d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sln; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java deleted file mode 100644 index 5bc8f022c51..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.small; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SmallPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SmallPostRequestBody} and sets the default values. - */ - public SmallPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SmallPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SmallPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SmallPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java deleted file mode 100644 index 20d46ab540b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.small; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java deleted file mode 100644 index ce666a59b0f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SqrtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SqrtPostRequestBody} and sets the default values. - */ - public SqrtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SqrtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SqrtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SqrtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java deleted file mode 100644 index cb2908a47ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java deleted file mode 100644 index 8c254e797c7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrtpi; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SqrtPiPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SqrtPiPostRequestBody} and sets the default values. - */ - public SqrtPiPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SqrtPiPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SqrtPiPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SqrtPiPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java deleted file mode 100644 index 1da2735435f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sqrtpi; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java deleted file mode 100644 index 4c2cf292555..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.standardize; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StandardizePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StandardizePostRequestBody} and sets the default values. - */ - public StandardizePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StandardizePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StandardizePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StandardizePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java deleted file mode 100644 index 580075807f5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.standardize; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java deleted file mode 100644 index 1421e1cdd76..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_p; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevPPostRequestBody} and sets the default values. - */ - public StDevPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StDevPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java deleted file mode 100644 index 52ab7646a91..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_p; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java deleted file mode 100644 index 1f8bbd802a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_s; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevSPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevSPostRequestBody} and sets the default values. - */ - public StDevSPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StDevSPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevSPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevSPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java deleted file mode 100644 index 2f0c168340b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdev_s; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java deleted file mode 100644 index 6a81e401c43..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdeva; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevAPostRequestBody} and sets the default values. - */ - public StDevAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StDevAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java deleted file mode 100644 index 7dea3436c0b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdeva; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java deleted file mode 100644 index 66e9f6bf719..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdevpa; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevPAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevPAPostRequestBody} and sets the default values. - */ - public StDevPAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StDevPAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevPAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevPAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java deleted file mode 100644 index 9c6e94ab3bd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.stdevpa; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java deleted file mode 100644 index f7c1a631721..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.substitute; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubstitutePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SubstitutePostRequestBody} and sets the default values. - */ - public SubstitutePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SubstitutePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SubstitutePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SubstitutePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("instanceNum", (n) -> { this.setInstanceNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the instanceNum property value. The instanceNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInstanceNum() { - return this.backingStore.get("instanceNum"); - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("instanceNum", this.getInstanceNum()); - writer.writeObjectValue("newText", this.getNewText()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the instanceNum property value. The instanceNum property - * @param value Value to set for the instanceNum property. - */ - public void setInstanceNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("instanceNum", value); - } - /** - * Sets the newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java deleted file mode 100644 index e1cd8bf97d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.substitute; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java deleted file mode 100644 index 6577441c624..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.subtotal; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubtotalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SubtotalPostRequestBody} and sets the default values. - */ - public SubtotalPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SubtotalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SubtotalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SubtotalPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("functionNum", (n) -> { this.setFunctionNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the functionNum property value. The functionNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFunctionNum() { - return this.backingStore.get("functionNum"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("functionNum", this.getFunctionNum()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the functionNum property value. The functionNum property - * @param value Value to set for the functionNum property. - */ - public void setFunctionNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("functionNum", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java deleted file mode 100644 index 7c0e9f56124..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.subtotal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java deleted file mode 100644 index 3c32523296e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumPostRequestBody} and sets the default values. - */ - public SumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java deleted file mode 100644 index 7af4c58e46a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java deleted file mode 100644 index 10ec3ce0989..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumif; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumIfPostRequestBody} and sets the default values. - */ - public SumIfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SumIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumIfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sumRange", (n) -> { this.setSumRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Gets the sumRange property value. The sumRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSumRange() { - return this.backingStore.get("sumRange"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - writer.writeObjectValue("sumRange", this.getSumRange()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } - /** - * Sets the sumRange property value. The sumRange property - * @param value Value to set for the sumRange property. - */ - public void setSumRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sumRange", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java deleted file mode 100644 index 798c8cc116e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumif; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java deleted file mode 100644 index 38dc4c36314..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumifs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumIfsPostRequestBody} and sets the default values. - */ - public SumIfsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SumIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumIfsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("sumRange", (n) -> { this.setSumRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the sumRange property value. The sumRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSumRange() { - return this.backingStore.get("sumRange"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("sumRange", this.getSumRange()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the sumRange property value. The sumRange property - * @param value Value to set for the sumRange property. - */ - public void setSumRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sumRange", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java deleted file mode 100644 index edaeeda095f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumifs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java deleted file mode 100644 index 1cc07857ae9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumsq; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumSqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumSqPostRequestBody} and sets the default values. - */ - public SumSqPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SumSqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumSqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumSqPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java deleted file mode 100644 index 85b3b184c15..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.sumsq; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java deleted file mode 100644 index 07ace6d4c62..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.syd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SydPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SydPostRequestBody} and sets the default values. - */ - public SydPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SydPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SydPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SydPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java deleted file mode 100644 index 498c4b8aa32..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.syd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java deleted file mode 100644 index c039d5c3e19..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TPostRequestBody} and sets the default values. - */ - public TPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java deleted file mode 100644 index b9f53e12190..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java deleted file mode 100644 index 4564cb75805..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDistPostRequestBody} and sets the default values. - */ - public TDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java deleted file mode 100644 index d228d63b2fe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java deleted file mode 100644 index df4ac3b2fc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_2t; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDist2TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDist2TPostRequestBody} and sets the default values. - */ - public TDist2TPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TDist2TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDist2TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDist2TPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java deleted file mode 100644 index f61accdfea4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_2t; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java deleted file mode 100644 index 9f76e51a534..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDistRTPostRequestBody} and sets the default values. - */ - public TDistRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDistRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java deleted file mode 100644 index d75d42a77d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_dist_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java deleted file mode 100644 index 371810c957a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TInvPostRequestBody} and sets the default values. - */ - public TInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java deleted file mode 100644 index 3e6c02a5053..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java deleted file mode 100644 index bd213ca51c4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv_2t; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TInv2TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TInv2TPostRequestBody} and sets the default values. - */ - public TInv2TPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TInv2TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TInv2TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TInv2TPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java deleted file mode 100644 index a41db5515c7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.t_inv_2t; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java deleted file mode 100644 index 8fa7f9be5f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tan; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TanPostRequestBody} and sets the default values. - */ - public TanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java deleted file mode 100644 index dc12fdad924..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tan; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java deleted file mode 100644 index 7767614deb4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tanh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TanhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TanhPostRequestBody} and sets the default values. - */ - public TanhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TanhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TanhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TanhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java deleted file mode 100644 index de31a4cd6a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tanh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java deleted file mode 100644 index ca90f6ad5a9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbilleq; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillEqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillEqPostRequestBody} and sets the default values. - */ - public TbillEqPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TbillEqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillEqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillEqPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java deleted file mode 100644 index 3f1046d9e1e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbilleq; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java deleted file mode 100644 index 7771d94f24b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillprice; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillPricePostRequestBody} and sets the default values. - */ - public TbillPricePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TbillPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillPricePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java deleted file mode 100644 index 3a85cd36d18..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillprice; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java deleted file mode 100644 index 8cfd91c4e20..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillyield; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillYieldPostRequestBody} and sets the default values. - */ - public TbillYieldPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TbillYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillYieldPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java deleted file mode 100644 index b3147c3053a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.tbillyield; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java deleted file mode 100644 index 4dba9ef9784..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.text; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TextPostRequestBody} and sets the default values. - */ - public TextPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TextPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("formatText", (n) -> { this.setFormatText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the formatText property value. The formatText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFormatText() { - return this.backingStore.get("formatText"); - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("formatText", this.getFormatText()); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the formatText property value. The formatText property - * @param value Value to set for the formatText property. - */ - public void setFormatText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("formatText", value); - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java deleted file mode 100644 index 02925bcf0a3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.text; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java deleted file mode 100644 index 424699e9ee3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.time; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TimePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TimePostRequestBody} and sets the default values. - */ - public TimePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TimePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TimePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TimePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("hour", (n) -> { this.setHour(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("minute", (n) -> { this.setMinute(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("second", (n) -> { this.setSecond(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the hour property value. The hour property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHour() { - return this.backingStore.get("hour"); - } - /** - * Gets the minute property value. The minute property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMinute() { - return this.backingStore.get("minute"); - } - /** - * Gets the second property value. The second property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSecond() { - return this.backingStore.get("second"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("hour", this.getHour()); - writer.writeObjectValue("minute", this.getMinute()); - writer.writeObjectValue("second", this.getSecond()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the hour property value. The hour property - * @param value Value to set for the hour property. - */ - public void setHour(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("hour", value); - } - /** - * Sets the minute property value. The minute property - * @param value Value to set for the minute property. - */ - public void setMinute(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("minute", value); - } - /** - * Sets the second property value. The second property - * @param value Value to set for the second property. - */ - public void setSecond(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("second", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java deleted file mode 100644 index 74d86b9ffda..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.time; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java deleted file mode 100644 index 27f5b09341a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.timevalue; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TimevaluePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TimevaluePostRequestBody} and sets the default values. - */ - public TimevaluePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TimevaluePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TimevaluePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TimevaluePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("timeText", (n) -> { this.setTimeText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the timeText property value. The timeText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTimeText() { - return this.backingStore.get("timeText"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("timeText", this.getTimeText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the timeText property value. The timeText property - * @param value Value to set for the timeText property. - */ - public void setTimeText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("timeText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java deleted file mode 100644 index 8d52c1d75d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.timevalue; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java deleted file mode 100644 index bc782daef86..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.today; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java deleted file mode 100644 index 7192ab33a02..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trim; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TrimPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TrimPostRequestBody} and sets the default values. - */ - public TrimPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TrimPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TrimPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TrimPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java deleted file mode 100644 index 82f6fd336da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trim; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java deleted file mode 100644 index a91404d4fa8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trimmean; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TrimMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TrimMeanPostRequestBody} and sets the default values. - */ - public TrimMeanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TrimMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TrimMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TrimMeanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("percent", (n) -> { this.setPercent(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the percent property value. The percent property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPercent() { - return this.backingStore.get("percent"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("percent", this.getPercent()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the percent property value. The percent property - * @param value Value to set for the percent property. - */ - public void setPercent(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("percent", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java deleted file mode 100644 index 4c40b67d41f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trimmean; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java deleted file mode 100644 index 73d51a609ec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trueescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java deleted file mode 100644 index e1a4b91051e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trunc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TruncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TruncPostRequestBody} and sets the default values. - */ - public TruncPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TruncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TruncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TruncPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java deleted file mode 100644 index d75681fbf30..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.trunc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java deleted file mode 100644 index 9b568e0be83..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.type; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TypePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TypePostRequestBody} and sets the default values. - */ - public TypePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TypePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TypePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TypePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java deleted file mode 100644 index 1cdf9bb7bbf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.type; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java deleted file mode 100644 index 4dd1d0ac4cb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.unichar; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnicharPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UnicharPostRequestBody} and sets the default values. - */ - public UnicharPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link UnicharPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UnicharPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UnicharPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java deleted file mode 100644 index e349276e59d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.unichar; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java deleted file mode 100644 index 888678d32a5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.unicode; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnicodePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UnicodePostRequestBody} and sets the default values. - */ - public UnicodePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link UnicodePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UnicodePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UnicodePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java deleted file mode 100644 index ed7ca941c1d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.unicode; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java deleted file mode 100644 index 5cd8400b9c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.upper; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UpperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UpperPostRequestBody} and sets the default values. - */ - public UpperPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link UpperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UpperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UpperPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java deleted file mode 100644 index 604e176899a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.upper; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java deleted file mode 100644 index aa05c5909be..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.usdollar; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UsdollarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UsdollarPostRequestBody} and sets the default values. - */ - public UsdollarPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link UsdollarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UsdollarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UsdollarPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimals", this.getDecimals()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java deleted file mode 100644 index 4d46b469d53..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.usdollar; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java deleted file mode 100644 index f82e5d74294..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.value; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ValuePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ValuePostRequestBody} and sets the default values. - */ - public ValuePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ValuePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ValuePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ValuePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java deleted file mode 100644 index 57d7ec063e2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.value; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java deleted file mode 100644 index 622b36856ee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_p; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarPPostRequestBody} and sets the default values. - */ - public VarPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VarPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java deleted file mode 100644 index c32a065a3b2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_p; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java deleted file mode 100644 index 779df071a12..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_s; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarSPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarSPostRequestBody} and sets the default values. - */ - public VarSPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VarSPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarSPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarSPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java deleted file mode 100644 index 7cd839fd93a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.var_s; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java deleted file mode 100644 index de9829c164e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vara; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarAPostRequestBody} and sets the default values. - */ - public VarAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VarAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java deleted file mode 100644 index 5a39b0b878a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vara; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java deleted file mode 100644 index ef018744a40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.varpa; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarPAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarPAPostRequestBody} and sets the default values. - */ - public VarPAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VarPAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarPAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarPAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java deleted file mode 100644 index fb116bdb0d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.varpa; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java deleted file mode 100644 index 8015230b288..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vdb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VdbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VdbPostRequestBody} and sets the default values. - */ - public VdbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VdbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VdbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VdbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * Gets the factor property value. The factor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFactor() { - return this.backingStore.get("factor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("factor", (n) -> { this.setFactor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("noSwitch", (n) -> { this.setNoSwitch(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the noSwitch property value. The noSwitch property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNoSwitch() { - return this.backingStore.get("noSwitch"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("factor", this.getFactor()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("noSwitch", this.getNoSwitch()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the factor property value. The factor property - * @param value Value to set for the factor property. - */ - public void setFactor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("factor", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the noSwitch property value. The noSwitch property - * @param value Value to set for the noSwitch property. - */ - public void setNoSwitch(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("noSwitch", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java deleted file mode 100644 index 57466dd11cf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vdb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java deleted file mode 100644 index 8d2ce936703..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vlookup; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VlookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VlookupPostRequestBody} and sets the default values. - */ - public VlookupPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VlookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VlookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VlookupPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the colIndexNum property value. The colIndexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getColIndexNum() { - return this.backingStore.get("colIndexNum"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("colIndexNum", (n) -> { this.setColIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rangeLookup", (n) -> { this.setRangeLookup(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("tableArray", (n) -> { this.setTableArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the rangeLookup property value. The rangeLookup property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRangeLookup() { - return this.backingStore.get("rangeLookup"); - } - /** - * Gets the tableArray property value. The tableArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTableArray() { - return this.backingStore.get("tableArray"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("colIndexNum", this.getColIndexNum()); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("rangeLookup", this.getRangeLookup()); - writer.writeObjectValue("tableArray", this.getTableArray()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the colIndexNum property value. The colIndexNum property - * @param value Value to set for the colIndexNum property. - */ - public void setColIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("colIndexNum", value); - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the rangeLookup property value. The rangeLookup property - * @param value Value to set for the rangeLookup property. - */ - public void setRangeLookup(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rangeLookup", value); - } - /** - * Sets the tableArray property value. The tableArray property - * @param value Value to set for the tableArray property. - */ - public void setTableArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("tableArray", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java deleted file mode 100644 index 00ab87f54ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.vlookup; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java deleted file mode 100644 index 074f6a8f4ee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weekday; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeekdayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeekdayPostRequestBody} and sets the default values. - */ - public WeekdayPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WeekdayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeekdayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeekdayPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("returnType", (n) -> { this.setReturnType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the returnType property value. The returnType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReturnType() { - return this.backingStore.get("returnType"); - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("returnType", this.getReturnType()); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the returnType property value. The returnType property - * @param value Value to set for the returnType property. - */ - public void setReturnType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("returnType", value); - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java deleted file mode 100644 index d31a1f1d5ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weekday; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java deleted file mode 100644 index fbea3472fd0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weeknum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeekNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeekNumPostRequestBody} and sets the default values. - */ - public WeekNumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WeekNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeekNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeekNumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("returnType", (n) -> { this.setReturnType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the returnType property value. The returnType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReturnType() { - return this.backingStore.get("returnType"); - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("returnType", this.getReturnType()); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the returnType property value. The returnType property - * @param value Value to set for the returnType property. - */ - public void setReturnType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("returnType", value); - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java deleted file mode 100644 index ab0c6b5ac28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weeknum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java deleted file mode 100644 index db071efc7c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weibull_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeibullDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeibullDistPostRequestBody} and sets the default values. - */ - public WeibullDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WeibullDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeibullDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeibullDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java deleted file mode 100644 index 754fe97106c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.weibull_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java deleted file mode 100644 index 752a76bf248..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkDayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WorkDayPostRequestBody} and sets the default values. - */ - public WorkDayPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WorkDayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WorkDayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WorkDayPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the days property value. The days property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDays() { - return this.backingStore.get("days"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("days", (n) -> { this.setDays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("days", this.getDays()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the days property value. The days property - * @param value Value to set for the days property. - */ - public void setDays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("days", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java deleted file mode 100644 index 2256663a120..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java deleted file mode 100644 index 63c1ad2d94b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday_intl; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkDayIntlPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WorkDayIntlPostRequestBody} and sets the default values. - */ - public WorkDayIntlPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WorkDayIntlPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WorkDayIntlPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WorkDayIntlPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the days property value. The days property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDays() { - return this.backingStore.get("days"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("days", (n) -> { this.setDays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("weekend", (n) -> { this.setWeekend(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Gets the weekend property value. The weekend property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWeekend() { - return this.backingStore.get("weekend"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("days", this.getDays()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeObjectValue("weekend", this.getWeekend()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the days property value. The days property - * @param value Value to set for the days property. - */ - public void setDays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("days", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } - /** - * Sets the weekend property value. The weekend property - * @param value Value to set for the weekend property. - */ - public void setWeekend(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("weekend", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java deleted file mode 100644 index 2fe03db2d2f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.workday_intl; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java deleted file mode 100644 index 91bf209e6a3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xirr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XirrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XirrPostRequestBody} and sets the default values. - */ - public XirrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link XirrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XirrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XirrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the dates property value. The dates property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDates() { - return this.backingStore.get("dates"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("dates", (n) -> { this.setDates(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("dates", this.getDates()); - writer.writeObjectValue("guess", this.getGuess()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the dates property value. The dates property - * @param value Value to set for the dates property. - */ - public void setDates(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dates", value); - } - /** - * Sets the guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java deleted file mode 100644 index ba65cb5b258..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xirr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java deleted file mode 100644 index 4eed861b43b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xnpv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XnpvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XnpvPostRequestBody} and sets the default values. - */ - public XnpvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link XnpvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XnpvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XnpvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the dates property value. The dates property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDates() { - return this.backingStore.get("dates"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("dates", (n) -> { this.setDates(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("dates", this.getDates()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the dates property value. The dates property - * @param value Value to set for the dates property. - */ - public void setDates(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dates", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java deleted file mode 100644 index 78b1d5961a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xnpv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java deleted file mode 100644 index 4f0e25df648..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xor; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XorPostRequestBody} and sets the default values. - */ - public XorPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link XorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XorPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java deleted file mode 100644 index 00e645bbc99..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.xor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java deleted file mode 100644 index a79b4391789..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.year; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YearPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YearPostRequestBody} and sets the default values. - */ - public YearPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YearPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YearPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YearPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java deleted file mode 100644 index aaf820fb901..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.year; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java deleted file mode 100644 index 12652075359..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yearfrac; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YearFracPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YearFracPostRequestBody} and sets the default values. - */ - public YearFracPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YearFracPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YearFracPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YearFracPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java deleted file mode 100644 index 3d8b8e18eab..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yearfrac; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java deleted file mode 100644 index cbcb21ef28b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yield; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldPostRequestBody} and sets the default values. - */ - public YieldPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java deleted file mode 100644 index 204231ec5a6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yield; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java deleted file mode 100644 index 0b214783d55..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yielddisc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldDiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldDiscPostRequestBody} and sets the default values. - */ - public YieldDiscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YieldDiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldDiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldDiscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java deleted file mode 100644 index 3c626651992..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yielddisc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java deleted file mode 100644 index 97f2a4528a3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yieldmat; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldMatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldMatPostRequestBody} and sets the default values. - */ - public YieldMatPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YieldMatPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldMatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldMatPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java deleted file mode 100644 index 471fd6e430f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.yieldmat; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java deleted file mode 100644 index 837fcdb4af2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.z_test; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ZTestPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ZTestPostRequestBody} and sets the default values. - */ - public ZTestPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ZTestPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ZTestPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ZTestPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sigma", (n) -> { this.setSigma(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the sigma property value. The sigma property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSigma() { - return this.backingStore.get("sigma"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("sigma", this.getSigma()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the sigma property value. The sigma property - * @param value Value to set for the sigma property. - */ - public void setSigma(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sigma", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java deleted file mode 100644 index be60243cf72..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.functions.z_test; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/NamesRequestBuilder.java deleted file mode 100644 index a02b3ab0c04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/NamesRequestBuilder.java +++ /dev/null @@ -1,261 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookNamedItem; -import com.microsoft.graph.beta.models.WorkbookNamedItemCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.addformulalocal.AddFormulaLocalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java deleted file mode 100644 index b1fc9cfde18..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("comment", this.getComment()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java deleted file mode 100644 index f477908d728..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java deleted file mode 100644 index 3a0993ae874..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java deleted file mode 100644 index b92b3726f98..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.addformulalocal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java deleted file mode 100644 index de9bbb4f0c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java deleted file mode 100644 index ae3fb77a827..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookNamedItem; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java deleted file mode 100644 index e10baa776c4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to call the range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index d22c992f12c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.names.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java deleted file mode 100644 index 5ed86780e70..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,234 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.operations; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookOperation; -import com.microsoft.graph.beta.models.WorkbookOperationCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.operations.item.WorkbookOperationItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the operations property of the microsoft.graph.workbook entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OperationsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the operations property of the microsoft.graph.workbook entity. - * @param workbookOperationId The unique identifier of workbookOperation - * @return a {@link WorkbookOperationItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookOperationItemRequestBuilder byWorkbookOperationId(@jakarta.annotation.Nonnull final String workbookOperationId) { - Objects.requireNonNull(workbookOperationId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookOperation%2Did", workbookOperationId); - return new WorkbookOperationItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The status of Workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. Nullable. - * @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. Nullable. - * @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. Nullable. - * @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. 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 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. 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java deleted file mode 100644 index f3245866e54..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.operations.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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. Nullable. - * @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. Nullable. - * @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. Nullable. - * @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. 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 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. 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java deleted file mode 100644 index 0fcc1ecc2db..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.refreshsession; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java deleted file mode 100644 index 3afb1d0da88..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.sessioninforesourcewithkey; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java deleted file mode 100644 index 84ebc0b57b0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tablerowoperationresultwithkey; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Invoke function tableRowOperationResult - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get() { - return get(null); - } - /** - * Invoke function tableRowOperationResult - * @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); - } - /** - * Invoke function tableRowOperationResult - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function tableRowOperationResult - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java deleted file mode 100644 index 6924ab594af..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.models.WorkbookTableCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.WorkbookTableItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java deleted file mode 100644 index 50bf26efbbd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java deleted file mode 100644 index 38ec3ccc8b3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to call the add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/add", rawUrl); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountGetResponse.java deleted file mode 100644 index 51a3415e245..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java deleted file mode 100644 index e4b43ab0555..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java deleted file mode 100644 index ad9d9a03997..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java +++ /dev/null @@ -1,327 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.SortRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index 01263fda156..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.clearfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 998b5a7fd02..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.models.WorkbookTableColumnCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.WorkbookTableColumnItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java deleted file mode 100644 index caef7ff13fb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeIntegerValue("index", this.getIndex()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java deleted file mode 100644 index 25d8ba8ae03..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java deleted file mode 100644 index 37809bf5803..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index ebfe4cad919..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java deleted file mode 100644 index ad9a3f05198..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.FilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 08dbe6e7bab..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java deleted file mode 100644 index cf44a53f9d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,336 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFilter; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply.ApplyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottomitemsfilter.ApplyBottomItemsFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottompercentfilter.ApplyBottomPercentFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycellcolorfilter.ApplyCellColorFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycustomfilter.ApplyCustomFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applydynamicfilter.ApplyDynamicFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyfontcolorfilter.ApplyFontColorFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter.ApplyIconFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytopitemsfilter.ApplyTopItemsFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytoppercentfilter.ApplyTopPercentFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter.ApplyValuesFilterRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java deleted file mode 100644 index e2bef4e29ae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java deleted file mode 100644 index 1e19db7bb16..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java deleted file mode 100644 index a93a5819688..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java deleted file mode 100644 index 114007b5b89..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottomitemsfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java deleted file mode 100644 index 4ef2791bf6e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java deleted file mode 100644 index 98dc6ba0781..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottompercentfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java deleted file mode 100644 index 2faa7f7c790..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java deleted file mode 100644 index d233a64f8e5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycellcolorfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java deleted file mode 100644 index 487d7488684..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java deleted file mode 100644 index 47a95a2cd06..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycustomfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java deleted file mode 100644 index dd7a5ad59ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java deleted file mode 100644 index 5937fa6eac5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applydynamicfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java deleted file mode 100644 index 7a516b860f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java deleted file mode 100644 index eeb361dc585..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyfontcolorfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java deleted file mode 100644 index 3e5e98b626b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java deleted file mode 100644 index 2334bf67f70..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java deleted file mode 100644 index 2bed7646395..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java deleted file mode 100644 index ba53fb54a21..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytopitemsfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java deleted file mode 100644 index c739fc50cfb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java deleted file mode 100644 index 48c4d093b00..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytoppercentfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java deleted file mode 100644 index b9695a1e62e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyValuesFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyValuesFilterPostRequestBody} and sets the default values. - */ - public ApplyValuesFilterPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ApplyValuesFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyValuesFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyValuesFilterPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java deleted file mode 100644 index fe719dab5e0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java deleted file mode 100644 index 59d497d9e7c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.filter.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 2ad5262c411..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java deleted file mode 100644 index 17c072cf1dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 4a876d4e57f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.item.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 3585c348f9d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.filter.FilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index a08e929353c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java deleted file mode 100644 index 697e008d08c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.filter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 1f3e97401fc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 186bec81708..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 7c652a67146..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index 56a8c607804..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.converttorange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 8513348dbbe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 010d8ad13ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java deleted file mode 100644 index 3a0990dd755..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Gets 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); - } - /** - * Gets 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); - } - /** - * Gets the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index 987a9512044..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.reapplyfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java deleted file mode 100644 index 5ca34aa654e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.models.WorkbookTableRowCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.item.WorkbookTableRowItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java deleted file mode 100644 index 36d6578978d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeIntegerValue("index", this.getIndex()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java deleted file mode 100644 index 9f01d956b73..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java deleted file mode 100644 index 1b9ddd7aaec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java deleted file mode 100644 index f83c958ce72..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java deleted file mode 100644 index 0e9e03786c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java deleted file mode 100644 index 22a9310b525..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Returns the range object associated with the entire row. - * @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 associated with the entire row. - * @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 associated with the entire row. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the range object associated with the entire row. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 6bce00e85dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 30bf4cdf582..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.rows.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Returns the range object associated with the entire row. - * @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 associated with the entire row. - * @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 associated with the entire row. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the range object associated with the entire row. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java deleted file mode 100644 index b406b782de4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableSort; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.apply.ApplyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java deleted file mode 100644 index a41005049d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.apply; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java deleted file mode 100644 index f7944373fa8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.apply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java deleted file mode 100644 index 28aa11581da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java deleted file mode 100644 index efe903a7537..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.sort.reapply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 5ff0e853f4c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 94e0fab3798..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 3b3fd511dfd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,197 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.sort.SortRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index fcfba8d11d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.clearfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java deleted file mode 100644 index abe1b0ede8b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index 5776fb352ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.converttorange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index c09dd2e83ad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index abbb6259803..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 56955829613..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Gets 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); - } - /** - * Gets 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); - } - /** - * Gets the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index beee4a7d34b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.reapplyfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java deleted file mode 100644 index 31577e83ce6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java deleted file mode 100644 index 03d0f57137b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.sort; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index dc834a151c9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index ae2e01600cb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.tables.itematwithindex.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java deleted file mode 100644 index c82563f5266..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java +++ /dev/null @@ -1,252 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookWorksheet; -import com.microsoft.graph.beta.models.WorkbookWorksheetCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java deleted file mode 100644 index 0667b9895f6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java deleted file mode 100644 index 99fd9d78c85..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java deleted file mode 100644 index 29e5090b596..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java deleted file mode 100644 index c82823bc81f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java +++ /dev/null @@ -1,335 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookWorksheet; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.cellwithrowwithcolumn.CellWithRowWithColumnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.ChartsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.NamesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.PivotTablesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.ProtectionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.rangewithaddress.RangeWithAddressRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.TablesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.TasksRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.usedrange.UsedRangeRequestBuilder; -import com.microsoft.graph.beta.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 manage the tasks property of the microsoft.graph.workbookWorksheet entity. - * @return a {@link TasksRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TasksRequestBuilder tasks() { - return new TasksRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java deleted file mode 100644 index 7ab97047ff3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.cellwithrowwithcolumn; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java deleted file mode 100644 index 368706671f0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java +++ /dev/null @@ -1,274 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChart; -import com.microsoft.graph.beta.models.WorkbookChartCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.WorkbookChartItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.ItemAtWithIndexRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java deleted file mode 100644 index 69ec8e7c8a7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Gets the type property value. The type property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeStringValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java deleted file mode 100644 index 74c3a8462d6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java deleted file mode 100644 index 06d642c7602..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java deleted file mode 100644 index 72baf94547f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java deleted file mode 100644 index 2a6cf611424..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java +++ /dev/null @@ -1,357 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChart; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.AxesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.image.ImageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.LegendRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.SeriesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata.SetDataRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.TitleRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java deleted file mode 100644 index faa508019b2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxes; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.CategoryAxisRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.SeriesAxisRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java deleted file mode 100644 index efcd3c87d3b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxis; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/FormatRequestBuilder.java deleted file mode 100644 index 74cb56c005c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisFormat; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index 035bc3776ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index 0189c7dc69b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 3cc33101373..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index 1c00b87f0e5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index efaca4a87a7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 131d7e058e0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 2cc5559de59..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index 085b1659e95..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index e90a8b176a2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 48f8935fd7e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 8df98b5c0e1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/TitleRequestBuilder.java deleted file mode 100644 index 09586f21f41..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitle; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index 08107d77c1a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 145baa36785..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java deleted file mode 100644 index 96d969eb4a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxis; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/FormatRequestBuilder.java deleted file mode 100644 index 53dc1aa7268..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisFormat; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index 32e1766dd40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index 5c3b3e1b1ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 179564185cb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index 718e9ace026..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index 9b5629f5b21..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 587e269e353..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index e94827049cf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index ea01d34fea0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index b2b2e6bc268..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 241d99aeafe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 242efd5703b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/TitleRequestBuilder.java deleted file mode 100644 index a375ec49636..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitle; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index dbfce3b83bc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index edca1aac9a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java deleted file mode 100644 index 6643fbe91f6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxis; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/FormatRequestBuilder.java deleted file mode 100644 index f6d09e6fece..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisFormat; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index e9d84810d4f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index 1199d344c73..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 8fcb695a525..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index dde16934639..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index c0d5a0008bd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 64dcb7f8956..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 7b5c89ea84f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index 76fcc48cd24..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index 65a7fefecc8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index d042c0c3352..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 5bebe0086c8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/TitleRequestBuilder.java deleted file mode 100644 index 0ca67b58c5d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitle; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index 8d96b9d8985..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 3f1196a91ff..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index 4f8e62c253b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartDataLabels; -import com.microsoft.graph.beta.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 datalabels 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 datalabels 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 datalabels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the datalabels 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 datalabels 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java deleted file mode 100644 index 0c038e55b59..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartDataLabelFormat; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/FillRequestBuilder.java deleted file mode 100644 index e21a6ce5e76..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 9980338dc7b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 6d1441814b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index 21499156b64..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/font/FontRequestBuilder.java deleted file mode 100644 index a819d1fe498..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java deleted file mode 100644 index 30ff5b93852..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAreaFormat; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index 9e0b2623065..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 841e4ccb8cd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 4a8c5d608a5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index cc3fc4ac5dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java deleted file mode 100644 index ea54fb88677..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java deleted file mode 100644 index 048f809cb6a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java deleted file mode 100644 index 43bb8e763f1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.image; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index 573b59fd0b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index e6b82f27890..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index e0834365c09..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index 23bcf843851..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheight; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index d2fefce78e7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index c3808bfb364..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheightwithfittingmode; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java deleted file mode 100644 index ead71d3148f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLegend; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java deleted file mode 100644 index 2f02e2df90e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLegendFormat; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/FillRequestBuilder.java deleted file mode 100644 index 3095a167005..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index c132fdf5496..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index d33b39c82af..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index f1c9e3af3ad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/font/FontRequestBuilder.java deleted file mode 100644 index 220455a8b22..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java deleted file mode 100644 index e187335df74..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.models.WorkbookChartSeriesCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.WorkbookChartSeriesItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java deleted file mode 100644 index c137b1f1a89..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java deleted file mode 100644 index 7ac5fbb4563..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java deleted file mode 100644 index df38186716b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.FormatRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java deleted file mode 100644 index 66d817437f6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeriesFormat; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index 5f52fa02cc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index d9461a8d16f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index fff9d03657a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index a5d6ff54058..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/LineRequestBuilder.java deleted file mode 100644 index 700de922da4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index dcfd4371e2a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java deleted file mode 100644 index aa8b22f9358..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPoint; -import com.microsoft.graph.beta.models.WorkbookChartPointCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.WorkbookChartPointItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountGetResponse.java deleted file mode 100644 index 194f2a11111..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountRequestBuilder.java deleted file mode 100644 index 42ddb2e0e5e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java deleted file mode 100644 index 83d12cac9a2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPoint; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java deleted file mode 100644 index eddc6f5aa3f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPointFormat; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index 084d392dbe2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 7cd11e738a9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index d242cddacf0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index e9e71253a4f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index cc37fced2b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPoint; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index 61b212f26f3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.itematwithindex.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 6d43cab3de3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.format.FormatRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index 1a037f2ab7b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java deleted file mode 100644 index 40e416446d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.points; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPoint; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java deleted file mode 100644 index 227ae081c0f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java deleted file mode 100644 index a7ceeb24239..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index a90c0e41fe9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index 420dff9eda7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java deleted file mode 100644 index dd246017758..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartTitle; -import com.microsoft.graph.beta.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 formating 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 formating 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 formating 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 formating 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 formating 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java deleted file mode 100644 index bef4222fe5b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartTitleFormat; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/FillRequestBuilder.java deleted file mode 100644 index f75a43aaa7f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 046b41e413f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index d3f59f54831..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index 82c25f76aa5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 3c6c1a7f15e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 02d6e95f802..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 86d661670d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,229 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChart; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.axes.AxesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.image.ImageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.legend.LegendRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.series.SeriesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata.SetDataRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.title.TitleRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java deleted file mode 100644 index 6f5ec3a1e39..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.axes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index 807f3ec3c74..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.datalabels; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 datalabels 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 datalabels 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 datalabels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the datalabels 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 datalabels 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index 32c7c62b1f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java deleted file mode 100644 index dcf76d08828..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java deleted file mode 100644 index a632ba6a07f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.image; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index 97d8800f585..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index 103d2c09c43..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index 2586bd3a9b6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index f61262d61b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheight; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index 3ba940c09f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index b9217680f58..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheightwithfittingmode; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java deleted file mode 100644 index 758952e0d02..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.legend; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java deleted file mode 100644 index 955ad4423df..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.series; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java deleted file mode 100644 index 4637e94a8aa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java deleted file mode 100644 index 31eb4a6a31d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index 42b92384ee5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index a0232596da8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java deleted file mode 100644 index 2ce102320a6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 formating 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 formating 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 formating 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 formating 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 formating 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 65e07da53ae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java deleted file mode 100644 index 79246ded23c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChart; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.axes.AxesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.image.ImageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.legend.LegendRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.series.SeriesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata.SetDataRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.title.TitleRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java deleted file mode 100644 index 5027dd8ec63..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.axes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index ee2726e8796..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.datalabels; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 datalabels 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 datalabels 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 datalabels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the datalabels 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 datalabels 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java deleted file mode 100644 index f39310cdc55..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java deleted file mode 100644 index 04188f29825..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java deleted file mode 100644 index 8d841b39537..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.image; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index fb2a827082a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index 01767e44451..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index 86e366c2207..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index 35ff2254bc2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheight; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index d548fc625ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index eb61e31f6c0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheightwithfittingmode; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java deleted file mode 100644 index e835578c82a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.legend; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java deleted file mode 100644 index bb59617ff1d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.series; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java deleted file mode 100644 index 7a70e49d9c4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java deleted file mode 100644 index 7cc27f55eb0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index 8708a295fc6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index 11ce2cbda5b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java deleted file mode 100644 index a1d857b1d0a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 formating 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 formating 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 formating 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 formating 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 formating 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index b078a3080d6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java deleted file mode 100644 index ad1aa6fcc72..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java +++ /dev/null @@ -1,261 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookNamedItem; -import com.microsoft.graph.beta.models.WorkbookNamedItemCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.addformulalocal.AddFormulaLocalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java deleted file mode 100644 index 53e10b233e4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("comment", this.getComment()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java deleted file mode 100644 index 58782e9f86c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java deleted file mode 100644 index f51a24ede40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java deleted file mode 100644 index 83d071441b6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.addformulalocal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java deleted file mode 100644 index 2f2b3cfb5bc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java deleted file mode 100644 index afe5e231a60..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookNamedItem; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java deleted file mode 100644 index a846e6500d3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookRange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to call the range method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RangeRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", pathParameters); - } - /** - * Instantiates a new {@link RangeRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RangeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 8e6eb73c7f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.names.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java deleted file mode 100644 index a5603f5f4c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java +++ /dev/null @@ -1,252 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookPivotTable; -import com.microsoft.graph.beta.models.WorkbookPivotTableCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.WorkbookPivotTableItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java deleted file mode 100644 index d5d8d4638db..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java deleted file mode 100644 index af801770520..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookPivotTable; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.refresh.RefreshRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java deleted file mode 100644 index 94b08aef008..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.refresh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke action refresh - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post() { - post(null); - } - /** - * Invoke action refresh - * @param requestConfiguration 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 refresh - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action refresh - * @param requestConfiguration 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 88fc0d3d35a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java deleted file mode 100644 index d6581da77fb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.pivottables.refreshall; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke action refreshAll - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post() { - post(null); - } - /** - * Invoke action refreshAll - * @param requestConfiguration 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 refreshAll - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action refreshAll - * @param requestConfiguration 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java deleted file mode 100644 index b1c4ca835d7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookWorksheetProtection; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.protect.ProtectRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java deleted file mode 100644 index 50d60665a5c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.protect; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java deleted file mode 100644 index bf3ac449bff..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.protect; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java deleted file mode 100644 index c85f66225b6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.protection.unprotect; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java deleted file mode 100644 index ef7b8a38e9f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java deleted file mode 100644 index 0378491a029..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.rangewithaddress; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java deleted file mode 100644 index 1e595cf3f98..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.models.WorkbookTableCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.WorkbookTableItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java deleted file mode 100644 index fd7f1c57af7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java deleted file mode 100644 index 3239bfe9131..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to call the add method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", pathParameters); - } - /** - * Instantiates a new {@link AddRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public AddRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java deleted file mode 100644 index 899433cbf51..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java deleted file mode 100644 index 376011b75bf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java deleted file mode 100644 index 51ba4b64fcd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java +++ /dev/null @@ -1,327 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.SortRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index 45aeaff0e06..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.clearfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index e24f00eba7f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.models.WorkbookTableColumnCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.WorkbookTableColumnItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java deleted file mode 100644 index de709dd4dfe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeIntegerValue("index", this.getIndex()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java deleted file mode 100644 index 6898fed33dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java deleted file mode 100644 index 3d367194838..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index 7aee0bce637..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java deleted file mode 100644 index 0437faca17d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.FilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index ff4bdb2edd3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java deleted file mode 100644 index 300d4fdab66..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,336 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFilter; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply.ApplyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottomitemsfilter.ApplyBottomItemsFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottompercentfilter.ApplyBottomPercentFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycellcolorfilter.ApplyCellColorFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycustomfilter.ApplyCustomFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applydynamicfilter.ApplyDynamicFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyfontcolorfilter.ApplyFontColorFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter.ApplyIconFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytopitemsfilter.ApplyTopItemsFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytoppercentfilter.ApplyTopPercentFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter.ApplyValuesFilterRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java deleted file mode 100644 index 06426535c64..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java deleted file mode 100644 index 6dc6e737649..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java deleted file mode 100644 index 442841b8e3c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java deleted file mode 100644 index 54b9f2e59b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottomitemsfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java deleted file mode 100644 index 2bcb38efbc3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java deleted file mode 100644 index 3904db7d31e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottompercentfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java deleted file mode 100644 index 456afce12f3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java deleted file mode 100644 index 061ef794923..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycellcolorfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java deleted file mode 100644 index 862b0160430..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java deleted file mode 100644 index c8aa54c8ff6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycustomfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java deleted file mode 100644 index a9609a42dd2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java deleted file mode 100644 index fa34593f383..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applydynamicfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java deleted file mode 100644 index 3c78dafebde..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java deleted file mode 100644 index 4481d001d03..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyfontcolorfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java deleted file mode 100644 index 6df2a6f28a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java deleted file mode 100644 index 6d2dac529b2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java deleted file mode 100644 index 8ef704d435a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java deleted file mode 100644 index e1e0e82d524..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytopitemsfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java deleted file mode 100644 index 24339e22657..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java deleted file mode 100644 index 1892ca1e22d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytoppercentfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java deleted file mode 100644 index 662d56daf99..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyValuesFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyValuesFilterPostRequestBody} and sets the default values. - */ - public ApplyValuesFilterPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ApplyValuesFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyValuesFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyValuesFilterPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java deleted file mode 100644 index e00dab221ad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/ClearRequestBuilder.java deleted file mode 100644 index 981d8d696d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 2cbc4e91813..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/range/RangeRequestBuilder.java deleted file mode 100644 index c66e79df5aa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index d2a26a065c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index c746caf30bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.filter.FilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 5766579a944..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java deleted file mode 100644 index 3800e49f4ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.filter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index f7a37128f12..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 1ea3e066ae8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 033b50d73f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index 9da1a7f269d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.converttorange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index cbaad5c2792..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 442989dbee7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java deleted file mode 100644 index 5962a57c4c3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Gets 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); - } - /** - * Gets 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); - } - /** - * Gets the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index b9e14e6faf3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.reapplyfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java deleted file mode 100644 index 0da369ff1be..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.models.WorkbookTableRowCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item.WorkbookTableRowItemRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java deleted file mode 100644 index 71ecee3359a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeIntegerValue("index", this.getIndex()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java deleted file mode 100644 index 41d56b02241..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java deleted file mode 100644 index c7396d304bd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java deleted file mode 100644 index dd30a34dccc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java deleted file mode 100644 index 1b3961a6340..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/range/RangeRequestBuilder.java deleted file mode 100644 index fa293a2ace6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Returns the range object associated with the entire row. - * @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 associated with the entire row. - * @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 associated with the entire row. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the range object associated with the entire row. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 877c0a56a6e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.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/beta/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 514d7e107ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Returns the range object associated with the entire row. - * @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 associated with the entire row. - * @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 associated with the entire row. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the range object associated with the entire row. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java deleted file mode 100644 index 96b7c7bed3e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableSort; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply.ApplyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java deleted file mode 100644 index 368901e12ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java deleted file mode 100644 index f1615832b45..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java deleted file mode 100644 index c3be2ac47d2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java deleted file mode 100644 index 2894b1bd6a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.reapply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 10cc58e0067..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 850b6b26011..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 39beebaeee8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,197 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.sort.SortRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index 917df1dda50..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.clearfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 464ab5a0e09..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index 17ff591397a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.converttorange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index f8fff55cb2d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index de179640256..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 38d5bf7b302..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Gets 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); - } - /** - * Gets 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); - } - /** - * Gets the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index 6263a8acd79..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.reapplyfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java deleted file mode 100644 index 714df6513b9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java deleted file mode 100644 index 7765fad0ea1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.sort; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index a41d05a781e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 663e22adc7d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/TasksRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/TasksRequestBuilder.java deleted file mode 100644 index de2e61d97a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/TasksRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.WorkbookDocumentTaskItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.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 tasks property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TasksRequestBuilder 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 tasks property of the microsoft.graph.workbookWorksheet entity. - * @param workbookDocumentTaskId The unique identifier of workbookDocumentTask - * @return a {@link WorkbookDocumentTaskItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskItemRequestBuilder byWorkbookDocumentTaskId(@jakarta.annotation.Nonnull final String workbookDocumentTaskId) { - Objects.requireNonNull(workbookDocumentTaskId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTask%2Did", workbookDocumentTaskId); - return new WorkbookDocumentTaskItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link TasksRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TasksRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link TasksRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TasksRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Collection of document tasks on this worksheet. Read-only. - * @return a {@link WorkbookDocumentTaskCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskCollectionResponse get() { - return get(null); - } - /** - * Collection of document tasks on this worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskCollectionResponse::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 tasks for storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask post(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return post(body, null); - } - /** - * Create new navigation property to tasks for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask post(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Collection of document tasks on this worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of document tasks on this 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 tasks for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to tasks 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TasksRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TasksRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TasksRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of document tasks on this 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountGetResponse.java deleted file mode 100644 index 84ccbcf3fa5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountRequestBuilder.java deleted file mode 100644 index fb0c9c75a3f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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}/tasks/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}/tasks/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/WorkbookDocumentTaskItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/WorkbookDocumentTaskItemRequestBuilder.java deleted file mode 100644 index 5beef0d6979..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/WorkbookDocumentTaskItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.ChangesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.CommentRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the tasks property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder comment() { - return new CommentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property tasks for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property tasks 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 document tasks on this worksheet. Read-only. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * Collection of document tasks on this worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property tasks in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property tasks in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property tasks for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property tasks 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 document tasks on this worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of document tasks on this 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 tasks in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property tasks 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskItemRequestBuilder(rawUrl, 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 document tasks on this 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/ChangesRequestBuilder.java deleted file mode 100644 index 918819ec0ad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountGetResponse.java deleted file mode 100644 index 1660bd261be..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountRequestBuilder.java deleted file mode 100644 index 09a388202bf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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}/tasks/{workbookDocumentTask%2Did}/changes/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}/tasks/{workbookDocumentTask%2Did}/changes/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index 5c07d3879f0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index bad97cc9fc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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}/tasks/{workbookDocumentTask%2Did}/changes/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}/tasks/{workbookDocumentTask%2Did}/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/CommentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/CommentRequestBuilder.java deleted file mode 100644 index 74291a5cd59..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/CommentRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.RepliesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentRequestBuilder 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); - } - /** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comment for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * The comment that the task is associated with. - * @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 comment 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 comment 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 comment for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The comment that the task is associated with. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property comment 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 comment 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 CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentRequestBuilder(rawUrl, 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 comment that the task is associated with. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java deleted file mode 100644 index 79017ed6494..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.models.WorkbookCommentReplyCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.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/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/count/CountRequestBuilder.java deleted file mode 100644 index d6ca4ff20a3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.count; - -import com.microsoft.graph.beta.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}/tasks/{workbookDocumentTask%2Did}/comment/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/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java deleted file mode 100644 index 1b8df0fff1b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/TaskRequestBuilder.java deleted file mode 100644 index f8a5e12521c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/TaskRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.ChangesRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment thread. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index fa3e19ba1ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountGetResponse.java deleted file mode 100644 index f0dece8f275..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 1d55b85c365..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/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}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index 1d453c71d58..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index a7fbdfdca49..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/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}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/TaskRequestBuilder.java deleted file mode 100644 index 85701a20836..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/TaskRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.ChangesRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment. 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 task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment. 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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index 1b95c07ea55..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountGetResponse.java deleted file mode 100644 index ba7ae4f7b60..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 4b8bc7c751d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/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}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index 3e72a10fa26..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index fbf32d37792..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/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}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index c68d20a2136..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex.changes.ChangesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex.comment.CommentRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder comment() { - return new CommentRequestBuilder(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}/tasks/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}/tasks/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/changes/ChangesRequestBuilder.java deleted file mode 100644 index dbb65c9b1d2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/comment/CommentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/comment/CommentRequestBuilder.java deleted file mode 100644 index 00da8fa80d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/comment/CommentRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex.comment; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})/comment{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})/comment{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comment for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * The comment that the task is associated with. - * @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 comment 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 comment 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 comment for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The comment that the task is associated with. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property comment 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 comment 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 CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentRequestBuilder(rawUrl, 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 comment that the task is associated with. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java deleted file mode 100644 index c22fc8dbe98..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.usedrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java deleted file mode 100644 index e1251719756..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.items.item.workbook.worksheets.item.usedrangewithvaluesonly; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index f1848c2c194..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from storage - * @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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser 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/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 01b6607a548..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 607a740746a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/lastModifiedByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index c5a82559aef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/ListRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/ListRequestBuilder.java deleted file mode 100644 index 2be27c81d3a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/ListRequestBuilder.java +++ /dev/null @@ -1,318 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list; - -import com.microsoft.graph.beta.models.List; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.activities.ActivitiesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.ContentTypesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.drive.DriveRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.ItemsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.operations.OperationsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.beta.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 activities property of the microsoft.graph.list entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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 permissions property of the microsoft.graph.list entity. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder permissions() { - return new PermissionsRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/list/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index 6a32e5240bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.activities; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.ItemActivityOLDCollectionResponse; -import com.microsoft.graph.beta.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 activities property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ActivitiesRequestBuilder extends BaseRequestBuilder { - /** - * 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/list/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/list/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The recent activities that took place within this list. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get() { - return get(null); - } - /** - * The recent activities that took place within this list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLDCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * The recent activities that took place within this list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The recent activities that took place within 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 activities for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this 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); - } - /** - * The recent activities that took place within 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/beta/generated/storage/filestorage/containers/item/drive/list/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 24ed190b418..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.columns; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.columns.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/columns/count/CountRequestBuilder.java deleted file mode 100644 index aaac9a4b93e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.columns.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index 095a2b23158..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.columns.item; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java deleted file mode 100644 index 540d9255a3b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.columns.item.sourcecolumn; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.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 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 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 content type column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The source column for 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 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java deleted file mode 100644 index af2529f99b2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java +++ /dev/null @@ -1,270 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.ContentTypeCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.addcopy.AddCopyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.addcopyfromcontenttypehub.AddCopyFromContentTypeHubRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.getcompatiblehubcontenttypes.GetCompatibleHubContentTypesRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java deleted file mode 100644 index cd6ede81606..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java deleted file mode 100644 index ca3f731ab18..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.addcopy; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke action addCopy - * @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); - } - /** - * Invoke action addCopy - * @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); - } - /** - * Invoke action addCopy - * @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); - } - /** - * Invoke action addCopy - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java deleted file mode 100644 index 6fc09a0a6f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java deleted file mode 100644 index 5e905e1e2dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.addcopyfromcontenttypehub; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 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 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 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 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/count/CountRequestBuilder.java deleted file mode 100644 index 31c43db9399..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java deleted file mode 100644 index 29af08f763d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.getcompatiblehubcontenttypes; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java deleted file mode 100644 index 2c5e2790e1c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.getcompatiblehubcontenttypes; - -import com.microsoft.graph.beta.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 compatible content types in 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 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 compatible content types in 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 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 compatible content types in 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 addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get compatible content types in 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 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 compatible content types in 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 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java deleted file mode 100644 index b629c4e579e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java +++ /dev/null @@ -1,318 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.associatewithhubsites.AssociateWithHubSitesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.base.BaseRequestBuilderEscaped; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.BaseTypesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.ColumnLinksRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.ColumnPositionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.copytodefaultcontentlocation.CopyToDefaultContentLocationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.ispublished.IsPublishedRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.publish.PublishRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java deleted file mode 100644 index 1a6e1214397..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java deleted file mode 100644 index 7100b082fab..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.associatewithhubsites; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke action associateWithHubSites - * @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); - } - /** - * Invoke action associateWithHubSites - * @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); - } - /** - * Invoke action associateWithHubSites - * @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); - } - /** - * Invoke action associateWithHubSites - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java deleted file mode 100644 index 69a321caca8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.base; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java deleted file mode 100644 index a5587479c7e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes; - -import com.microsoft.graph.beta.models.ContentTypeCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java deleted file mode 100644 index 893b1f92cfc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java deleted file mode 100644 index e8feecbe6da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.basetypes.item; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java deleted file mode 100644 index c75dcea9ca4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks; - -import com.microsoft.graph.beta.models.ColumnLink; -import com.microsoft.graph.beta.models.ColumnLinkCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java deleted file mode 100644 index 15a2ce7fbd7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java deleted file mode 100644 index 8d81d2a25af..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnlinks.item; - -import com.microsoft.graph.beta.models.ColumnLink; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java deleted file mode 100644 index c35c5e4ad21..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions; - -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java deleted file mode 100644 index 454f657052e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index 5546278da9c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columnpositions.item; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index c8c07fb9e15..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columns; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index 5324b4ad97c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index 6a7ea116789..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.item; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java deleted file mode 100644 index 6400c9fe72d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.columns.item.sourcecolumn; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.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 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 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 content type column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The source column for 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 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java deleted file mode 100644 index df0b8cc4925..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.copytodefaultcontentlocation; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java deleted file mode 100644 index 26e72ede14a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.copytodefaultcontentlocation; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke action copyToDefaultContentLocation - * @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); - } - /** - * Invoke action copyToDefaultContentLocation - * @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); - } - /** - * Invoke action copyToDefaultContentLocation - * @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); - } - /** - * Invoke action copyToDefaultContentLocation - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java deleted file mode 100644 index 0391d57a9f1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java deleted file mode 100644 index e2eb79a0da8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.ispublished; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke function isPublished - * @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); - } - /** - * Invoke function isPublished - * @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); - } - /** - * Invoke function isPublished - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function isPublished - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java deleted file mode 100644 index 52f2e17515c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.publish; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke action publish - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Invoke action publish - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action publish - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action publish - * @param requestConfiguration 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/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java deleted file mode 100644 index cc0ef218e51..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.contenttypes.item.unpublish; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke action unpublish - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Invoke action unpublish - * @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); - } - /** - * Invoke action unpublish - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action unpublish - * @param requestConfiguration 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/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index 2f00681d4ed..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get createdByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from storage - * @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); - } - /** - * Get createdByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser 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/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 33952fb6787..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.createdbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 7535116baee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/createdByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index c69a8a56fa9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.createdbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/drive/DriveRequestBuilder.java deleted file mode 100644 index 445dede3b63..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/drive/DriveRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.drive; - -import com.microsoft.graph.beta.models.Drive; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/ItemsRequestBuilder.java deleted file mode 100644 index 3ab9ffeda05..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.models.ListItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.delta.DeltaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.deltawithtoken.DeltaWithTokenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.ListItemItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the items property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to call the delta method. - * @return a {@link DeltaRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaRequestBuilder delta() { - return new DeltaRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the items property of the microsoft.graph.list entity. - * @param listItemId The unique identifier of listItem - * @return a {@link ListItemItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemItemRequestBuilder byListItemId(@jakarta.annotation.Nonnull final String listItemId) { - Objects.requireNonNull(listItemId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("listItem%2Did", listItemId); - return new ListItemItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Provides operations to call the delta method. - * @param token Usage: token='{token}' - * @return a {@link DeltaWithTokenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaWithTokenRequestBuilder deltaWithToken(@jakarta.annotation.Nonnull final String token) { - Objects.requireNonNull(token); - return new DeltaWithTokenRequestBuilder(pathParameters, requestAdapter, token); - } - /** - * All items contained in the list. - * @return a {@link ListItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemCollectionResponse get() { - return get(null); - } - /** - * All items contained in the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem post(@jakarta.annotation.Nonnull final ListItem body) { - return post(body, null); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem post(@jakarta.annotation.Nonnull final ListItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItem::createFromDiscriminatorValue); - } - /** - * All items contained in the list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * All items contained in the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ListItem body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ListItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemsRequestBuilder(rawUrl, requestAdapter); - } - /** - * All items contained in the list. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaGetResponse.java deleted file mode 100644 index d06916c1b40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.delta; - -import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaRequestBuilder.java deleted file mode 100644 index 54efa61f9b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.delta; - -import com.microsoft.graph.beta.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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/beta/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java deleted file mode 100644 index 9b40c0cec3c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.deltawithtoken; - -import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java deleted file mode 100644 index 39622c8133d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.deltawithtoken; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/ListItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/ListItemItemRequestBuilder.java deleted file mode 100644 index 3d2659c223e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/ListItemItemRequestBuilder.java +++ /dev/null @@ -1,333 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.ActivitiesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createlink.CreateLinkRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.DocumentSetVersionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.driveitem.DriveItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.beta.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 activities property of the microsoft.graph.listItem entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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 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 permissions property of the microsoft.graph.listItem entity. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder permissions() { - return new PermissionsRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index b7b4b661f40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.ItemActivityOLDCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.ItemActivityOLDItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.listItem 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.listItem entity. - * @param itemActivityOLDId The unique identifier of itemActivityOLD - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder byItemActivityOLDId(@jakarta.annotation.Nonnull final String itemActivityOLDId) { - Objects.requireNonNull(itemActivityOLDId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("itemActivityOLD%2Did", itemActivityOLDId); - return new ItemActivityOLDItemRequestBuilder(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/list/items/{listItem%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/list/items/{listItem%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get() { - return get(null); - } - /** - * The list of recent activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLDCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent 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; - } - /** - * 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 ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this 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); - } - /** - * The list of recent activities that took place on this 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/count/CountRequestBuilder.java deleted file mode 100644 index 83b9e53c1bc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.count; - -import com.microsoft.graph.beta.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}/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/list/items/{listItem%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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java deleted file mode 100644 index ed7f9595ce4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.driveitem.DriveItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.listitem.ListItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityOLDItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the driveItem property of the microsoft.graph.itemActivityOLD entity. - * @return a {@link DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder driveItem() { - return new DriveItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the listItem property of the microsoft.graph.itemActivityOLD entity. - * @return a {@link ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder listItem() { - return new ListItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@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}/activities/{itemActivityOLD%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@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}/activities/{itemActivityOLD%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); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get() { - return get(null); - } - /** - * The list of recent activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * Update the navigation property activities in storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD patch(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD patch(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::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; - } - /** - * The list of recent activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent 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 activities in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityOLDItemRequestBuilder(rawUrl, 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 recent 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index f69e66411ee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.driveitem; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.driveitem.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.driveitem.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.itemActivityOLD 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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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}/activities/{itemActivityOLD%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}/activities/{itemActivityOLD%2Did}/driveItem{?%24expand,%24select}", rawUrl); - } - /** - * Get driveItem from storage - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * Get driveItem from storage - * @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); - } - /** - * Get driveItem from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get driveItem 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 DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get driveItem 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 4621a570e2d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.driveitem.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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}/activities/{itemActivityOLD%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}/activities/{itemActivityOLD%2Did}/driveItem/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 6fc16135ae1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.driveitem.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@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}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@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}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/listitem/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/listitem/ListItemRequestBuilder.java deleted file mode 100644 index 9d5dfa95c41..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/activities/item/listitem/ListItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.activities.item.listitem; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.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.itemActivityOLD 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/list/items/{listItem%2Did}/activities/{itemActivityOLD%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/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/listItem{?%24expand,%24select}", rawUrl); - } - /** - * Get listItem from storage - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem get() { - return get(null); - } - /** - * Get listItem from storage - * @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); - } - /** - * Get listItem from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get listItem 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 ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get listItem 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index f8505833335..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.analytics; - -import com.microsoft.graph.beta.models.ItemAnalytics; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index c1d19cbeae8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get createdByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from storage - * @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); - } - /** - * Get createdByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 464f8628a73..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 1345e1ceaa4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/items/{listItem-id}/createdByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index c46b69b0521..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java deleted file mode 100644 index 7ab9a6a0103..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createlink; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java deleted file mode 100644 index 33dced14e09..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.createlink; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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); - } - /** - * Create a sharing link for a listItem. The createLink action creates 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. - * @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); - } - /** - * Create a sharing link for a listItem. The createLink action creates 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. - * @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); - } - /** - * Create a sharing link for a listItem. The createLink action creates 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. - * @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); - } - /** - * Create a sharing link for a listItem. The createLink action creates 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java deleted file mode 100644 index 1570a2356a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.documentsetversions; - -import com.microsoft.graph.beta.models.DocumentSetVersion; -import com.microsoft.graph.beta.models.DocumentSetVersionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java deleted file mode 100644 index 3dcddb7dd6c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java deleted file mode 100644 index d4062326079..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item; - -import com.microsoft.graph.beta.models.DocumentSetVersion; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index 4a0b52b4468..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item.fields; - -import com.microsoft.graph.beta.models.FieldValueSet; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java deleted file mode 100644 index bc0beb8f3c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.documentsetversions.item.restore; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index ee521596346..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.driveitem; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.driveitem.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.driveitem.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 343f7d1fe15..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.driveitem.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 0bee697751b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/driveitem/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.driveitem.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@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/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@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/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index 0eee9947ffe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.fields; - -import com.microsoft.graph.beta.models.FieldValueSet; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java deleted file mode 100644 index 381d87da118..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java deleted file mode 100644 index aa24da614ec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 0fe91993ea7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from storage - * @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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 1eadd292b05..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index ff1ca436f1c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/items/{listItem-id}/lastModifiedByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 44ef3d1b758..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index 7818b868b20..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.models.PermissionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.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.listItem 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.listItem 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/list/items/{listItem%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/list/items/{listItem%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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/count/CountRequestBuilder.java deleted file mode 100644 index eb9ac02f531..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.count; - -import com.microsoft.graph.beta.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}/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/list/items/{listItem%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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/PermissionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/PermissionItemRequestBuilder.java deleted file mode 100644 index 0bb77f5a942..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/PermissionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.item.grant.GrantRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.item.revokegrants.RevokeGrantsRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.listItem 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); - } - /** - * Provides operations to call the revokeGrants method. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder revokeGrants() { - return new RevokeGrantsRequestBuilder(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/list/items/{listItem%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/list/items/{listItem%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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantPostRequestBody.java deleted file mode 100644 index 649a67529f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantPostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantPostResponse.java deleted file mode 100644 index 04a28049d41..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantPostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantRequestBuilder.java deleted file mode 100644 index adc46b52e45..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/grant/GrantRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/list/items/{listItem%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/list/items/{listItem%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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java deleted file mode 100644 index a029bc9f51d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.item.revokegrants; - -import com.microsoft.graph.beta.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 RevokeGrantsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RevokeGrantsPostRequestBody} and sets the default values. - */ - public RevokeGrantsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RevokeGrantsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RevokeGrantsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RevokeGrantsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("grantees", (n) -> { this.setGrantees(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the grantees property value. The grantees property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getGrantees() { - return this.backingStore.get("grantees"); - } - /** - * Serializes information the current 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("grantees", this.getGrantees()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the grantees property value. The grantees property - * @param value Value to set for the grantees property. - */ - public void setGrantees(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("grantees", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java deleted file mode 100644 index d5f93f65aef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.permissions.item.revokegrants; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 revokeGrants method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RevokeGrantsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@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}/permissions/{permission%2Did}/revokeGrants", pathParameters); - } - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@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}/permissions/{permission%2Did}/revokeGrants", rawUrl); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body) { - return post(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.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); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RevokeGrantsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the 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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RevokeGrantsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/VersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/VersionsRequestBuilder.java deleted file mode 100644 index e756617724a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/VersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.versions; - -import com.microsoft.graph.beta.models.ListItemVersion; -import com.microsoft.graph.beta.models.ListItemVersionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.versions.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/count/CountRequestBuilder.java deleted file mode 100644 index 685d1e8cbc3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.versions.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java deleted file mode 100644 index bc16ef61dfe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.versions.item; - -import com.microsoft.graph.beta.models.ListItemVersion; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.versions.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index d6589474df6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.versions.item.fields; - -import com.microsoft.graph.beta.models.FieldValueSet; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java deleted file mode 100644 index 89511ac6c8a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.items.item.versions.item.restoreversion; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Invoke action restoreVersion - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post() { - post(null); - } - /** - * Invoke action restoreVersion - * @param requestConfiguration 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 restoreVersion - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action restoreVersion - * @param requestConfiguration 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/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 4c118c32e52..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from storage - * @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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser 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/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 8b3a09ec705..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 3401da52017..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors.count.CountRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/drive/list/lastModifiedByUser/serviceProvisioningErrors - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ServiceProvisioningErrorsRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to count the resources in the collection. - * @return a {@link CountRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CountRequestBuilder count() { - return new CountRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ServiceProvisioningErrorsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ServiceProvisioningErrorsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 71e52dfad76..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/operations/OperationsRequestBuilder.java deleted file mode 100644 index 933b370a225..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.operations; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.RichLongRunningOperation; -import com.microsoft.graph.beta.models.RichLongRunningOperationCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.operations.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/operations/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/operations/count/CountRequestBuilder.java deleted file mode 100644 index 8bffdc9a84b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/operations/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.operations.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java deleted file mode 100644 index 4e811364a8e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.operations.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index 04884399b6b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.models.PermissionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.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.list 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.list 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/list/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/list/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/beta/generated/storage/filestorage/containers/item/drive/list/permissions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/count/CountRequestBuilder.java deleted file mode 100644 index 0286460035c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.count; - -import com.microsoft.graph.beta.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/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/list/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/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/PermissionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/PermissionItemRequestBuilder.java deleted file mode 100644 index eacaab3dd0d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/PermissionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.item.grant.GrantRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.item.revokegrants.RevokeGrantsRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.list 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); - } - /** - * Provides operations to call the revokeGrants method. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder revokeGrants() { - return new RevokeGrantsRequestBuilder(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/list/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/list/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/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantPostRequestBody.java deleted file mode 100644 index 8e314968551..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.item.grant; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantPostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantPostResponse.java deleted file mode 100644 index ab3efda5ea1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantPostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.item.grant; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantRequestBuilder.java deleted file mode 100644 index ea6508f580e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/grant/GrantRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.item.grant; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/list/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/list/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/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java deleted file mode 100644 index 0e8eb801022..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.item.revokegrants; - -import com.microsoft.graph.beta.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 RevokeGrantsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RevokeGrantsPostRequestBody} and sets the default values. - */ - public RevokeGrantsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RevokeGrantsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RevokeGrantsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RevokeGrantsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("grantees", (n) -> { this.setGrantees(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the grantees property value. The grantees property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getGrantees() { - return this.backingStore.get("grantees"); - } - /** - * Serializes information the current 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("grantees", this.getGrantees()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the grantees property value. The grantees property - * @param value Value to set for the grantees property. - */ - public void setGrantees(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("grantees", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java deleted file mode 100644 index 5746d189c00..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.permissions.item.revokegrants; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 revokeGrants method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RevokeGrantsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/permissions/{permission%2Did}/revokeGrants", pathParameters); - } - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/permissions/{permission%2Did}/revokeGrants", rawUrl); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body) { - return post(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.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); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RevokeGrantsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the 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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RevokeGrantsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java deleted file mode 100644 index 34ef36de8b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.subscriptions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Subscription; -import com.microsoft.graph.beta.models.SubscriptionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.subscriptions.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/count/CountRequestBuilder.java deleted file mode 100644 index 3e18ec718f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.subscriptions.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java deleted file mode 100644 index 136a4f60ebe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.subscriptions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Subscription; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java deleted file mode 100644 index deb06721bc5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.list.subscriptions.item.reauthorize; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/beta/generated/storage/filestorage/containers/item/drive/recent/RecentGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/recent/RecentGetResponse.java deleted file mode 100644 index 188a073cd11..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/recent/RecentGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.recent; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/recent/RecentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/recent/RecentRequestBuilder.java deleted file mode 100644 index 92cc06937b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/recent/RecentRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.recent; - -import com.microsoft.graph.beta.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 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 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 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 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 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/beta/generated/storage/filestorage/containers/item/drive/root/RootRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/root/RootRequestBuilder.java deleted file mode 100644 index a64feaaccc2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/root/RootRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.root; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.root.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.root.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/root/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/root/content/ContentRequestBuilder.java deleted file mode 100644 index 26d207c910c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/root/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.root.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/root/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/root/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 54be63e1444..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/root/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.root.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/root/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/root/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQGetResponse.java deleted file mode 100644 index fc486b096c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.searchwithq; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQRequestBuilder.java deleted file mode 100644 index 169edae21d3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/searchwithq/SearchWithQRequestBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.searchwithq; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeGetResponse.java deleted file mode 100644 index bef396e7fc4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.sharedwithme; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java deleted file mode 100644 index 151fd7e1e57..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.sharedwithme; - -import com.microsoft.graph.beta.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're 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're 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're 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're 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're 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/beta/generated/storage/filestorage/containers/item/drive/special/SpecialRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/SpecialRequestBuilder.java deleted file mode 100644 index 99bbd5dd7eb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/SpecialRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special; - -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special.count.CountRequestBuilder; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/special/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/count/CountRequestBuilder.java deleted file mode 100644 index ab7a6ffd52b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special.count; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/containers/item/drive/special/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index c814542fed7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/beta/generated/storage/filestorage/containers/item/drive/special/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/item/content/ContentRequestBuilder.java deleted file mode 100644 index 9f9cee60c28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/containers/item/drive/special/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index ad2d16c8c22..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/containers/item/drive/special/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.containers.item.drive.special.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/DriveRequestBuilder.java index 48c4365f65c..573a5c9a614 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/DriveRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/DriveRequestBuilder.java @@ -2,18 +2,6 @@ import com.microsoft.graph.beta.models.Drive; import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.ActivitiesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles.BundlesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following.FollowingRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.ItemsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.ListRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.recent.RecentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.root.RootRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.searchwithq.SearchWithQRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.sharedwithme.SharedWithMeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special.SpecialRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; import com.microsoft.kiota.HttpMethod; @@ -32,94 +20,6 @@ */ @jakarta.annotation.Generated("com.microsoft.kiota") public class DriveRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the activities property of the microsoft.graph.drive entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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 @@ -136,24 +36,6 @@ public DriveRequestBuilder(@jakarta.annotation.Nonnull final HashMap requestConfiguration) { - final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } /** * The drive of the resource fileStorageContainer. Read-only. * @return a {@link Drive} @@ -176,61 +58,6 @@ public Drive get(@jakarta.annotation.Nullable final java.util.function.Consumer< errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); } - /** - * Update the navigation property drive in storage - * @param body The request body - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive patch(@jakarta.annotation.Nonnull final Drive body) { - return patch(body, null); - } - /** - * Update the navigation property drive in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link Drive} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public Drive patch(@jakarta.annotation.Nonnull final Drive body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, Drive::createFromDiscriminatorValue); - } - /** - * Provides operations to call the search method. - * @param q Usage: q='{q}' - * @return a {@link SearchWithQRequestBuilder} - */ - @jakarta.annotation.Nonnull - public SearchWithQRequestBuilder searchWithQ(@jakarta.annotation.Nonnull final String q) { - Objects.requireNonNull(q); - return new SearchWithQRequestBuilder(pathParameters, requestAdapter, q); - } - /** - * Delete navigation property drive for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property drive for storage - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } /** * The drive of the resource fileStorageContainer. Read-only. * @return a {@link RequestInformation} @@ -251,30 +78,6 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f requestInfo.headers.tryAdd("Accept", "application/json"); return requestInfo; } - /** - * Update the navigation property drive in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Drive body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property drive in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Drive body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. * @param rawUrl The raw URL to use for the request builder. @@ -285,12 +88,6 @@ public DriveRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawU Objects.requireNonNull(rawUrl); return new DriveRequestBuilder(rawUrl, requestAdapter); } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class DeleteRequestConfiguration extends BaseRequestConfiguration { - } /** * The drive of the resource fileStorageContainer. Read-only. */ @@ -329,10 +126,4 @@ public class GetRequestConfiguration extends BaseRequestConfiguration { @jakarta.annotation.Nullable public GetQueryParameters queryParameters = new GetQueryParameters(); } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } } diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index d929dce3e8b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.ItemActivityOLDCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.ItemActivityOLDItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.drive 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.drive entity. - * @param itemActivityOLDId The unique identifier of itemActivityOLD - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder byItemActivityOLDId(@jakarta.annotation.Nonnull final String itemActivityOLDId) { - Objects.requireNonNull(itemActivityOLDId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("itemActivityOLD%2Did", itemActivityOLDId); - return new ItemActivityOLDItemRequestBuilder(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/deletedContainers/{fileStorageContainer%2Did}/drive/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/deletedContainers/{fileStorageContainer%2Did}/drive/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of recent activities that took place under this drive. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get() { - return get(null); - } - /** - * The list of recent activities that took place under this drive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLDCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * The list of recent activities that took place under this drive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent activities that took place under this 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 activities for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this 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); - } - /** - * The list of recent activities that took place under this 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/count/CountRequestBuilder.java deleted file mode 100644 index 93cff1632f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.count; - -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/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/deletedContainers/{fileStorageContainer%2Did}/drive/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/ItemActivityOLDItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/ItemActivityOLDItemRequestBuilder.java deleted file mode 100644 index df7f77420b7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/ItemActivityOLDItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.driveitem.DriveItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.listitem.ListItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.drive entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityOLDItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the driveItem property of the microsoft.graph.itemActivityOLD entity. - * @return a {@link DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder driveItem() { - return new DriveItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the listItem property of the microsoft.graph.itemActivityOLD entity. - * @return a {@link ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder listItem() { - return new ListItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%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); - } - /** - * The list of recent activities that took place under this drive. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get() { - return get(null); - } - /** - * The list of recent activities that took place under this drive. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * Update the navigation property activities in storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD patch(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD patch(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::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; - } - /** - * The list of recent activities that took place under this drive. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent activities that took place under this 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 activities in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityOLDItemRequestBuilder(rawUrl, 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 recent activities that took place under this 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index 0d43b329199..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.driveitem; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.driveitem.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.driveitem.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.itemActivityOLD 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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%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/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}/driveItem{?%24expand,%24select}", rawUrl); - } - /** - * Get driveItem from storage - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * Get driveItem from storage - * @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); - } - /** - * Get driveItem from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get driveItem 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 DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get driveItem 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 3182a6a40ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.driveitem.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%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/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}/driveItem/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index d2d0f6d3a3b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.driveitem.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}/driveItem/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/listitem/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/listitem/ListItemRequestBuilder.java deleted file mode 100644 index 47c1ceffa9a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/activities/item/listitem/ListItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.activities.item.listitem; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.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.itemActivityOLD 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/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%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/deletedContainers/{fileStorageContainer%2Did}/drive/activities/{itemActivityOLD%2Did}/listItem{?%24expand,%24select}", rawUrl); - } - /** - * Get listItem from storage - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem get() { - return get(null); - } - /** - * Get listItem from storage - * @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); - } - /** - * Get listItem from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get listItem 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 ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get listItem 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/BundlesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/BundlesRequestBuilder.java deleted file mode 100644 index 341021ff88c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/BundlesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/count/CountRequestBuilder.java deleted file mode 100644 index e449db9041e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index b0f5df02ac3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/content/ContentRequestBuilder.java deleted file mode 100644 index 76a047010c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 98c88b290c3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/bundles/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.bundles.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index 22caee2addc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get createdByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from storage - * @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); - } - /** - * Get createdByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index a82506941de..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.createdbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 6e59f50b2b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index adbc4afde34..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.createdbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/FollowingRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/FollowingRequestBuilder.java deleted file mode 100644 index b220d80e823..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/FollowingRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following; - -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/count/CountRequestBuilder.java deleted file mode 100644 index 3b73cfeee03..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 325b2cfa526..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/content/ContentRequestBuilder.java deleted file mode 100644 index e0e8759ffb2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index d6abfe720af..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/following/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.following.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/ItemsRequestBuilder.java deleted file mode 100644 index 7422926840d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/count/CountRequestBuilder.java deleted file mode 100644 index 59cbdd63f2a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index a8a35575482..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,526 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.activities.ActivitiesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.assignsensitivitylabel.AssignSensitivityLabelRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.checkin.CheckinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.checkout.CheckoutRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children.ChildrenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.copy.CopyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createlink.CreateLinkRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createuploadsession.CreateUploadSessionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.delta.DeltaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.deltawithtoken.DeltaWithTokenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.extractsensitivitylabels.ExtractSensitivityLabelsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.follow.FollowRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.invite.InviteRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.listitem.ListItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permanentdelete.PermanentDeleteRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.preview.PreviewRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.restore.RestoreRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.retentionlabel.RetentionLabelRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.searchwithq.SearchWithQRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.subscriptions.SubscriptionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.thumbnails.ThumbnailsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.unfollow.UnfollowRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.validatepermission.ValidatePermissionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.versions.VersionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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 activities property of the microsoft.graph.driveItem entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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 manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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 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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index e196d506332..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.activities; - -import com.microsoft.graph.beta.models.ItemActivityOLDCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.activities.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.activities.item.ItemActivityOLDItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.driveItem 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.driveItem entity. - * @param itemActivityOLDId The unique identifier of itemActivityOLD - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder byItemActivityOLDId(@jakarta.annotation.Nonnull final String itemActivityOLDId) { - Objects.requireNonNull(itemActivityOLDId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("itemActivityOLD%2Did", itemActivityOLDId); - return new ItemActivityOLDItemRequestBuilder(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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get() { - return get(null); - } - /** - * The list of recent activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLDCollectionResponse::createFromDiscriminatorValue); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent 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 ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ActivitiesRequestBuilder(rawUrl, requestAdapter); - } - /** - * The list of recent activities that took place on this 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(); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/count/CountRequestBuilder.java deleted file mode 100644 index ae1a7a329f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.activities.count; - -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java deleted file mode 100644 index d971087fe8d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.activities.item; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.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 activities property of the microsoft.graph.driveItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityOLDItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/activities/{itemActivityOLD%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/activities/{itemActivityOLD%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get() { - return get(null); - } - /** - * The list of recent activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent 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 ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityOLDItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * The list of recent 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index bac249177f0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics; - -import com.microsoft.graph.beta.models.ItemAnalytics; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.alltime.AllTimeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.ItemActivityStatsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java deleted file mode 100644 index 512eb236f00..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/alltime/AllTimeRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.alltime; - -import com.microsoft.graph.beta.models.ItemActivityStat; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java deleted file mode 100644 index 7b718b7f2f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/ItemActivityStatsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats; - -import com.microsoft.graph.beta.models.ItemActivityStat; -import com.microsoft.graph.beta.models.ItemActivityStatCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java deleted file mode 100644 index ccaf40dc573..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java deleted file mode 100644 index ecdea260c29..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/ItemActivityStatItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item; - -import com.microsoft.graph.beta.models.ItemActivityStat; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index 47cb733afcc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities; - -import com.microsoft.graph.beta.models.ItemActivity; -import com.microsoft.graph.beta.models.ItemActivityCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java deleted file mode 100644 index f8d02523a13..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java deleted file mode 100644 index 49ef4a73976..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/ItemActivityItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities.item; - -import com.microsoft.graph.beta.models.ItemActivity; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index cac4a9d9e77..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 0674d133a19..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 16f28049e86..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/itemactivitystats/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.itemactivitystats.item.activities.item.driveitem.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java deleted file mode 100644 index 0da696f0b03..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/analytics/lastsevendays/LastSevenDaysRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.analytics.lastsevendays; - -import com.microsoft.graph.beta.models.ItemActivityStat; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java deleted file mode 100644 index 07b2acda42b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.assignsensitivitylabel; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java deleted file mode 100644 index f4af40120d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/assignsensitivitylabel/AssignSensitivityLabelRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.assignsensitivitylabel; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkin/CheckinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkin/CheckinPostRequestBody.java deleted file mode 100644 index 11103637d64..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkin/CheckinPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkin/CheckinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkin/CheckinRequestBuilder.java deleted file mode 100644 index 54e94765bdb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkin/CheckinRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.checkin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkout/CheckoutRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkout/CheckoutRequestBuilder.java deleted file mode 100644 index 208e36f567c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/checkout/CheckoutRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.checkout; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/ChildrenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/ChildrenRequestBuilder.java deleted file mode 100644 index ad9d8c267d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/ChildrenRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/count/CountRequestBuilder.java deleted file mode 100644 index 3d9b7b2f3d3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 73a67dd4684..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/content/ContentRequestBuilder.java deleted file mode 100644 index 3b21d3af20f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 367b1889f44..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/children/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.children.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/content/ContentRequestBuilder.java deleted file mode 100644 index 8250671542b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index b52a161d522..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/copy/CopyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/copy/CopyPostRequestBody.java deleted file mode 100644 index c665ea038d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/copy/CopyPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.copy; - -import com.microsoft.graph.beta.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; - } - /** - * Gets the childrenOnly property value. The childrenOnly property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getChildrenOnly() { - return this.backingStore.get("childrenOnly"); - } - /** - * 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("childrenOnly", (n) -> { this.setChildrenOnly(n.getBooleanValue()); }); - 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.writeBooleanValue("childrenOnly", this.getChildrenOnly()); - 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 childrenOnly property value. The childrenOnly property - * @param value Value to set for the childrenOnly property. - */ - public void setChildrenOnly(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("childrenOnly", 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/copy/CopyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/copy/CopyRequestBuilder.java deleted file mode 100644 index 8decb4e2e17..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/copy/CopyRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.copy; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/copy", rawUrl); - } - /** - * Asynchronously create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress. - * @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 create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress. - * @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 create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress. - * @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 create a copy of a driveItem (including any children) under a new parent item or with a new name. After the request is acknowledged, it enters a queue. The actual copying, including any subitems, occurs at an undetermined time. Progress is reported until the operation is completed by monitoring the progress. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index 357ad0da177..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get createdByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from storage - * @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); - } - /** - * Get createdByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 5bb4ef38702..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createdbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 0fb35878d53..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 73172417480..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createdbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java deleted file mode 100644 index 4c53ff1ad74..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createlink/CreateLinkPostRequestBody.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createlink; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java deleted file mode 100644 index 6b149d2bf1d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createlink/CreateLinkRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createlink; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createLink", rawUrl); - } - /** - * Create a link to share a driveItem driveItem.The createLink action creates 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 is 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); - } - /** - * Create a link to share a driveItem driveItem.The createLink action creates 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 is 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); - } - /** - * Create a link to share a driveItem driveItem.The createLink action creates 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 is 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); - } - /** - * Create a link to share a driveItem driveItem.The createLink action creates 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 is 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java deleted file mode 100644 index 794c9798613..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createuploadsession/CreateUploadSessionPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createuploadsession; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java deleted file mode 100644 index d442c862349..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/createuploadsession/CreateUploadSessionRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.createuploadsession; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/delta/DeltaGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/delta/DeltaGetResponse.java deleted file mode 100644 index ad41bb89303..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/delta/DeltaGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.delta; - -import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/delta/DeltaRequestBuilder.java deleted file mode 100644 index 749cdca9bf8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.delta; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - * @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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - * @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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - * @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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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.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 finish 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. Note: you should only delete a folder locally if it's empty after syncing all the changes. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java deleted file mode 100644 index 937e8b4c859..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/deltawithtoken/DeltaWithTokenGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.deltawithtoken; - -import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java deleted file mode 100644 index 240d6b45fbf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/deltawithtoken/DeltaWithTokenRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.deltawithtoken; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java deleted file mode 100644 index c44d30112a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/extractsensitivitylabels/ExtractSensitivityLabelsRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.extractsensitivitylabels; - -import com.microsoft.graph.beta.models.ExtractSensitivityLabelsResult; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/follow/FollowRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/follow/FollowRequestBuilder.java deleted file mode 100644 index 8c1a8b21fc6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/follow/FollowRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.follow; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java deleted file mode 100644 index c8e49473e5a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java deleted file mode 100644 index 04c527bcbed..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java +++ /dev/null @@ -1,172 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get itemActivityStats for the activities that took place under this resource within the specified time interval. Analytics aggregates might not be available for all action types. - * @return a {@link GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse get() { - return get(null); - } - /** - * Get itemActivityStats for the activities that took place under 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @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); - } - /** - * Get itemActivityStats for the activities that took place under 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 itemActivityStats for the activities that took place under 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 GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get itemActivityStats for the activities that took place under 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InvitePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InvitePostRequestBody.java deleted file mode 100644 index 6e29033360e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InvitePostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.invite; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InvitePostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InvitePostResponse.java deleted file mode 100644 index 7c005d23863..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InvitePostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.invite; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InviteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InviteRequestBuilder.java deleted file mode 100644 index 3be3ccccc14..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/invite/InviteRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.invite; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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 an email to the recipients to notify them the item was shared. - * @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 an email to the recipients to notify them the item was shared. - * @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 an email to the recipients to notify them the item was shared. - * @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 an email to the recipients to notify them the item was shared. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 89deedcc26b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from storage - * @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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 87aa23a3c54..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 2c5ea376269..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index aed77d5d3e6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/listitem/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/listitem/ListItemRequestBuilder.java deleted file mode 100644 index 28d7960a0d0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/listitem/ListItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.listitem; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java deleted file mode 100644 index 07cc51f4d41..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permanentdelete/PermanentDeleteRequestBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permanentdelete; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index 3f3c8ac4fb5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.models.PermissionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/count/CountRequestBuilder.java deleted file mode 100644 index b02ef28c8c4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java deleted file mode 100644 index 599ea704b75..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/PermissionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.item.grant.GrantRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.item.revokegrants.RevokeGrantsRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to call the revokeGrants method. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder revokeGrants() { - return new RevokeGrantsRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java deleted file mode 100644 index b74a828bff9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java deleted file mode 100644 index 59261374fef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantPostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java deleted file mode 100644 index 2017478ca45..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/grant/GrantRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java deleted file mode 100644 index 668a68d4110..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.item.revokegrants; - -import com.microsoft.graph.beta.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 RevokeGrantsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RevokeGrantsPostRequestBody} and sets the default values. - */ - public RevokeGrantsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RevokeGrantsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RevokeGrantsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RevokeGrantsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("grantees", (n) -> { this.setGrantees(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the grantees property value. The grantees property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getGrantees() { - return this.backingStore.get("grantees"); - } - /** - * Serializes information the current 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("grantees", this.getGrantees()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the grantees property value. The grantees property - * @param value Value to set for the grantees property. - */ - public void setGrantees(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("grantees", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java deleted file mode 100644 index f364f52ae9a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.permissions.item.revokegrants; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 revokeGrants method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RevokeGrantsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/{permission%2Did}/revokeGrants", pathParameters); - } - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/{permission%2Did}/revokeGrants", rawUrl); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body) { - return post(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.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); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RevokeGrantsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the 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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RevokeGrantsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/preview/PreviewPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/preview/PreviewPostRequestBody.java deleted file mode 100644 index d2e95379066..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/preview/PreviewPostRequestBody.java +++ /dev/null @@ -1,175 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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 allowEdit property value. The allowEdit property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getAllowEdit() { - return this.backingStore.get("allowEdit"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the chromeless property value. The chromeless property - * @return a {@link Boolean} - */ - @jakarta.annotation.Nullable - public Boolean getChromeless() { - return this.backingStore.get("chromeless"); - } - /** - * 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("allowEdit", (n) -> { this.setAllowEdit(n.getBooleanValue()); }); - deserializerMap.put("chromeless", (n) -> { this.setChromeless(n.getBooleanValue()); }); - deserializerMap.put("page", (n) -> { this.setPage(n.getStringValue()); }); - deserializerMap.put("viewer", (n) -> { this.setViewer(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 viewer property value. The viewer property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getViewer() { - return this.backingStore.get("viewer"); - } - /** - * 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.writeBooleanValue("allowEdit", this.getAllowEdit()); - writer.writeBooleanValue("chromeless", this.getChromeless()); - writer.writeStringValue("page", this.getPage()); - writer.writeStringValue("viewer", this.getViewer()); - 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 allowEdit property value. The allowEdit property - * @param value Value to set for the allowEdit property. - */ - public void setAllowEdit(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("allowEdit", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the chromeless property value. The chromeless property - * @param value Value to set for the chromeless property. - */ - public void setChromeless(@jakarta.annotation.Nullable final Boolean value) { - this.backingStore.set("chromeless", 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 viewer property value. The viewer property - * @param value Value to set for the viewer property. - */ - public void setViewer(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("viewer", 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/preview/PreviewRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/preview/PreviewRequestBuilder.java deleted file mode 100644 index c21a893acdd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/preview/PreviewRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.preview; - -import com.microsoft.graph.beta.models.ItemPreviewInfo; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/restore/RestorePostRequestBody.java deleted file mode 100644 index 16d19ab7f78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/restore/RestorePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.restore; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/restore/RestoreRequestBuilder.java deleted file mode 100644 index 82397447ce7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/restore/RestoreRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.restore; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/restore", rawUrl); - } - /** - * Restore a driveItem that has been deleted and is currently in the recycle bin. - * @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. - * @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. - * @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. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java deleted file mode 100644 index ad0d3c74530..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/retentionlabel/RetentionLabelRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.retentionlabel; - -import com.microsoft.graph.beta.models.ItemRetentionLabel; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java deleted file mode 100644 index d392243ec14..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/searchwithq/SearchWithQGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.searchwithq; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java deleted file mode 100644 index a44f146bc5e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/searchwithq/SearchWithQRequestBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.searchwithq; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java deleted file mode 100644 index e446f6ff29a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/SubscriptionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.subscriptions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Subscription; -import com.microsoft.graph.beta.models.SubscriptionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.subscriptions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java deleted file mode 100644 index b4fe695edb2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.subscriptions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java deleted file mode 100644 index 2baf6b265b5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/item/SubscriptionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.subscriptions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Subscription; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java deleted file mode 100644 index e43c5735615..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.subscriptions.item.reauthorize; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java deleted file mode 100644 index d9286d9d465..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/ThumbnailsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.thumbnails; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ThumbnailSet; -import com.microsoft.graph.beta.models.ThumbnailSetCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.thumbnails.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java deleted file mode 100644 index 672d4caf4af..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.thumbnails.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java deleted file mode 100644 index 92313c0d97a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/thumbnails/item/ThumbnailSetItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.thumbnails.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java deleted file mode 100644 index 08aa5788346..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/unfollow/UnfollowRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.unfollow; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java deleted file mode 100644 index 92e9358c455..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/validatepermission/ValidatePermissionPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java deleted file mode 100644 index 4632d7e89a2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/validatepermission/ValidatePermissionRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.validatepermission; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/VersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/VersionsRequestBuilder.java deleted file mode 100644 index 66f7f6ec300..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/VersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.versions; - -import com.microsoft.graph.beta.models.DriveItemVersion; -import com.microsoft.graph.beta.models.DriveItemVersionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.versions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/count/CountRequestBuilder.java deleted file mode 100644 index deba5b274c8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.versions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java deleted file mode 100644 index 193df4f1fef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/DriveItemVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.versions.item; - -import com.microsoft.graph.beta.models.DriveItemVersion; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.versions.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java deleted file mode 100644 index ec68bebb324..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,196 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.versions.item.content; - -import com.microsoft.graph.beta.models.DriveItemVersion; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/content", rawUrl); - } - /** - * Delete content for the navigation property versions in storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete content for the navigation property versions in 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 content for the navigation property versions from storage - * @return a {@link InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream get() { - return get(null); - } - /** - * Get content for the navigation property versions from storage - * @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); - } - /** - * Update content for the navigation property versions in storage - * @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); - } - /** - * Update content for the navigation property versions in storage - * @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); - } - /** - * Delete content for the navigation property versions in storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete content for the navigation property versions in 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 content for the navigation property versions from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get content for the navigation property versions 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); - requestInfo.headers.tryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /** - * Update content for the navigation property versions in storage - * @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); - } - /** - * Update content for the navigation property versions in storage - * @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java deleted file mode 100644 index 854d4a154da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.versions.item.restoreversion; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/WorkbookRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/WorkbookRequestBuilder.java deleted file mode 100644 index d817393a957..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/WorkbookRequestBuilder.java +++ /dev/null @@ -1,340 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Workbook; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.application.ApplicationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.closesession.CloseSessionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.CommentsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.createsession.CreateSessionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.FunctionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.NamesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.operations.OperationsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.refreshsession.RefreshSessionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.sessioninforesourcewithkey.SessionInfoResourceWithKeyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tablerowoperationresultwithkey.TableRowOperationResultWithKeyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.TablesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java deleted file mode 100644 index 07fd5b67844..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/ApplicationRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.application; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookApplication; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java deleted file mode 100644 index f9c4ad240d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/calculate/CalculatePostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java deleted file mode 100644 index 3e21d8b7c36..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/application/calculate/CalculateRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.application.calculate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java deleted file mode 100644 index ac089029b8f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/closesession/CloseSessionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.closesession; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java deleted file mode 100644 index 88bef008504..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/CommentsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.models.WorkbookCommentCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get comments from storage - * @return a {@link WorkbookCommentCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookCommentCollectionResponse get() { - return get(null); - } - /** - * Get comments from storage - * @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); - } - /** - * Get comments from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get comments 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 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); - } - /** - * Get comments 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java deleted file mode 100644 index 1f84d3c99f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java deleted file mode 100644 index a74393b503a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/WorkbookCommentItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.RepliesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(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/deletedContainers/{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/deletedContainers/{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); - } - /** - * Get comments from storage - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * Get comments from storage - * @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; - } - /** - * Get comments from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get comments 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 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 { - } - /** - * Get comments 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java deleted file mode 100644 index 01649f6d24c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/RepliesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.models.WorkbookCommentReplyCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java deleted file mode 100644 index 020b4f709d6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java deleted file mode 100644 index 15019546e18..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/TaskRequestBuilder.java deleted file mode 100644 index abe012fb612..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/TaskRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.ChangesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.CommentRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder comment() { - return new CommentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment thread. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index ad98be8728e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountGetResponse.java deleted file mode 100644 index 1861370af3b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index f3d9e5d998f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index d5bc1db597c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index ab2d1a70bd9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/CommentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/CommentRequestBuilder.java deleted file mode 100644 index 33418b1358e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/CommentRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comment for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * The comment that the task is associated with. - * @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 comment 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 comment 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 comment for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The comment that the task is associated with. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property comment 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 comment 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 CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentRequestBuilder(rawUrl, 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 comment that the task is associated with. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/TaskRequestBuilder.java deleted file mode 100644 index b5495f1007d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/TaskRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.ChangesRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment. 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 task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index 662f040e40a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountGetResponse.java deleted file mode 100644 index 5825866a4de..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 4b1ab33f48e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index 9d66fcc4df6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index b587ec97251..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/replies/item/task/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.replies.item.task.comment.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}/task/comment/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/TaskRequestBuilder.java deleted file mode 100644 index 3ddeb87e9f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/TaskRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes.ChangesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.CommentRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder comment() { - return new CommentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment. 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 task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index 82c42e45133..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/count/CountGetResponse.java deleted file mode 100644 index 941dabcc2b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 78359726e51..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index daaa773e77d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index b55caabbf1d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/CommentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/CommentRequestBuilder.java deleted file mode 100644 index 13ac693ff52..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/CommentRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.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 comment property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentRequestBuilder 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 CommentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comment for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * The comment that the task is associated with. - * @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 comment 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 comment 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 comment for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The comment that the task is associated with. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property comment 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 comment 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 CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentRequestBuilder(rawUrl, 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 comment that the task is associated with. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java deleted file mode 100644 index c2c4b3d1057..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/RepliesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.models.WorkbookCommentReplyCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/count/CountRequestBuilder.java deleted file mode 100644 index 28f8944eb9b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.count; - -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java deleted file mode 100644 index 7b130fe36d7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/TaskRequestBuilder.java deleted file mode 100644 index 02644ecda73..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/TaskRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.ChangesRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment thread. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index 7c771e43197..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountGetResponse.java deleted file mode 100644 index 1c7746111e9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index ae66d69edb4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index f8e1249d38f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 0514d0c4216..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/comments/item/task/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.comments.item.task.comment.replies.item.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/task/comment/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java deleted file mode 100644 index fe9bd641684..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/createsession/CreateSessionPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java deleted file mode 100644 index 58b313a556e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/createsession/CreateSessionRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.createsession; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java deleted file mode 100644 index 60ded02efd9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/FunctionsRequestBuilder.java +++ /dev/null @@ -1,3522 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctions; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.abs.AbsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.accrint.AccrIntRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.accrintm.AccrIntMRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acos.AcosRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acosh.AcoshRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acot.AcotRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acoth.AcothRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.amordegrc.AmorDegrcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.amorlinc.AmorLincRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.and.AndRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.arabic.ArabicRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.areas.AreasRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asc.AscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asin.AsinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asinh.AsinhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atan.AtanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atan2.Atan2RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atanh.AtanhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.avedev.AveDevRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.average.AverageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averagea.AverageARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averageif.AverageIfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averageifs.AverageIfsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bahttext.BahtTextRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.base.BaseRequestBuilderEscaped; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besseli.BesselIRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besselj.BesselJRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besselk.BesselKRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bessely.BesselYRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.beta_dist.BetaDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.beta_inv.BetaInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2dec.Bin2DecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2hex.Bin2HexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2oct.Bin2OctRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_dist_range.BinomDistRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_dist.BinomDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_inv.BinomInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitand.BitandRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitlshift.BitlshiftRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitor.BitorRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitrshift.BitrshiftRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitxor.BitxorRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ceiling_math.CeilingMathRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ceiling_precise.CeilingPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.charescaped.CharRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_dist_rt.ChiSqDistRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_dist.ChiSqDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_inv_rt.ChiSqInvRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_inv.ChiSqInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.choose.ChooseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.clean.CleanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.code.CodeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.combin.CombinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.combina.CombinaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.complex.ComplexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.concatenate.ConcatenateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.confidence_norm.ConfidenceNormRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.confidence_t.ConfidenceTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.convert.ConvertRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cos.CosRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cosh.CoshRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cot.CotRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coth.CothRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.counta.CountARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countblank.CountBlankRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countif.CountIfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countifs.CountIfsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdaybs.CoupDayBsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdays.CoupDaysRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdaysnc.CoupDaysNcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupncd.CoupNcdRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupnum.CoupNumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.couppcd.CoupPcdRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.csc.CscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.csch.CschRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cumipmt.CumIPmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cumprinc.CumPrincRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.date.DateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.datevalue.DatevalueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.daverage.DaverageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.day.DayRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.days.DaysRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.days360.Days360RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.db.DbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dbcs.DbcsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dcount.DcountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dcounta.DcountARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ddb.DdbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2bin.Dec2BinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2hex.Dec2HexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2oct.Dec2OctRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.decimal.DecimalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.degrees.DegreesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.delta.DeltaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.devsq.DevSqRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dget.DgetRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.disc.DiscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dmax.DmaxRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dmin.DminRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollar.DollarRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollarde.DollarDeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollarfr.DollarFrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dproduct.DproductRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dstdev.DstDevRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dstdevp.DstDevPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dsum.DsumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.duration.DurationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dvar.DvarRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dvarp.DvarPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ecma_ceiling.EcmaCeilingRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.edate.EdateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.effect.EffectRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.eomonth.EoMonthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erf_precise.ErfPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erf.ErfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erfc_precise.ErfCPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erfc.ErfCRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.error_type.ErrorTypeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.even.EvenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.exact.ExactRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.exp.ExpRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.expon_dist.ExponDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_dist_rt.FDistRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_dist.FDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_inv_rt.FInvRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_inv.FInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fact.FactRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.factdouble.FactDoubleRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.falseescaped.FalseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.find.FindRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.findb.FindBRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fisher.FisherRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fisherinv.FisherInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fixed.FixedRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.floor_math.FloorMathRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.floor_precise.FloorPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fv.FvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fvschedule.FvscheduleRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma_dist.GammaDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma_inv.GammaInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma.GammaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gammaln_precise.GammaLnPreciseRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gammaln.GammaLnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gauss.GaussRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gcd.GcdRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.geomean.GeoMeanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gestep.GeStepRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.harmean.HarMeanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2bin.Hex2BinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2dec.Hex2DecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2oct.Hex2OctRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hlookup.HlookupRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hour.HourRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hyperlink.HyperlinkRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hypgeom_dist.HypGeomDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ifescaped.IfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imabs.ImAbsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imaginary.ImaginaryRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imargument.ImArgumentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imconjugate.ImConjugateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcos.ImCosRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcosh.ImCoshRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcot.ImCotRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcsc.ImCscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcsch.ImCschRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imdiv.ImDivRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imexp.ImExpRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imln.ImLnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imlog10.ImLog10RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imlog2.ImLog2RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.impower.ImPowerRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.improduct.ImProductRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imreal.ImRealRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsec.ImSecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsech.ImSechRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsin.ImSinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsinh.ImSinhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsqrt.ImSqrtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsub.ImSubRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsum.ImSumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imtan.ImTanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.intescaped.IntRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.intrate.IntRateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ipmt.IpmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.irr.IrrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iserr.IsErrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iserror.IsErrorRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iseven.IsEvenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isformula.IsFormulaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.islogical.IsLogicalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isna.IsNARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isnontext.IsNonTextRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isnumber.IsNumberRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iso_ceiling.IsoCeilingRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isodd.IsOddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isoweeknum.IsoWeekNumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ispmt.IspmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isref.IsrefRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.istext.IsTextRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.kurt.KurtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.large.LargeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lcm.LcmRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.left.LeftRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.leftb.LeftbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.len.LenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lenb.LenbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ln.LnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.log.LogRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.log10.Log10RequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lognorm_dist.LogNormDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lognorm_inv.LogNormInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lookup.LookupRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lower.LowerRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.match.MatchRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.max.MaxRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.maxa.MaxARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mduration.MdurationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.median.MedianRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mid.MidRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.midb.MidbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.min.MinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mina.MinARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.minute.MinuteRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mirr.MirrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mod.ModRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.month.MonthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mround.MroundRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.multinomial.MultiNomialRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.n.NRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.na.NaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.negbinom_dist.NegBinomDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.networkdays_intl.NetworkDaysIntlRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.networkdays.NetworkDaysRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.nominal.NominalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_dist.NormDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_inv.NormInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_s_dist.NormSDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_s_inv.NormSInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.not.NotRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.now.NowRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.nper.NperRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.npv.NpvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.numbervalue.NumberValueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2bin.Oct2BinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2dec.Oct2DecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2hex.Oct2HexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.odd.OddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddfprice.OddFPriceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddfyield.OddFYieldRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddlprice.OddLPriceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddlyield.OddLYieldRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.or.OrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pduration.PdurationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentile_exc.PercentileExcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentile_inc.PercentileIncRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentrank_exc.PercentRankExcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentrank_inc.PercentRankIncRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.permut.PermutRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.permutationa.PermutationaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.phi.PhiRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pi.PiRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pmt.PmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.poisson_dist.PoissonDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.power.PowerRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ppmt.PpmtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.price.PriceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pricedisc.PriceDiscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pricemat.PriceMatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.product.ProductRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.proper.ProperRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pv.PvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quartile_exc.QuartileExcRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quartile_inc.QuartileIncRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quotient.QuotientRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.radians.RadiansRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rand.RandRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.randbetween.RandBetweenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rank_avg.RankAvgRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rank_eq.RankEqRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rate.RateRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.received.ReceivedRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.replace.ReplaceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.replaceb.ReplaceBRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rept.ReptRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.right.RightRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rightb.RightbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.roman.RomanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.round.RoundRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rounddown.RoundDownRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.roundup.RoundUpRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rri.RriRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sec.SecRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sech.SechRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.second.SecondRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.seriessum.SeriesSumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sheet.SheetRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sheets.SheetsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sign.SignRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sin.SinRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sinh.SinhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.skew_p.SkewPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.skew.SkewRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sln.SlnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.small.SmallRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sqrt.SqrtRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sqrtpi.SqrtPiRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.standardize.StandardizeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdev_p.StDevPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdev_s.StDevSRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdeva.StDevARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdevpa.StDevPARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.substitute.SubstituteRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.subtotal.SubtotalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sum.SumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumif.SumIfRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumifs.SumIfsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumsq.SumSqRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.syd.SydRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist_2t.TDist2TRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist_rt.TDistRTRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist.TDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_inv_2t.TInv2TRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_inv.TInvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t.TRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tan.TanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tanh.TanhRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbilleq.TbillEqRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbillprice.TbillPriceRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbillyield.TbillYieldRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.text.TextRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.time.TimeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.timevalue.TimevalueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.today.TodayRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trim.TrimRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trimmean.TrimMeanRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trueescaped.TrueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trunc.TruncRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.type.TypeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.unichar.UnicharRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.unicode.UnicodeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.upper.UpperRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.usdollar.UsdollarRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.value.ValueRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.var_p.VarPRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.var_s.VarSRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vara.VarARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.varpa.VarPARequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vdb.VdbRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vlookup.VlookupRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weekday.WeekdayRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weeknum.WeekNumRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weibull_dist.WeibullDistRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.workday_intl.WorkDayIntlRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.workday.WorkDayRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xirr.XirrRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xnpv.XnpvRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xor.XorRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.year.YearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yearfrac.YearFracRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yield.YieldRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yielddisc.YieldDiscRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yieldmat.YieldMatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java deleted file mode 100644 index 833efd76f82..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/abs/AbsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.abs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AbsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AbsPostRequestBody} and sets the default values. - */ - public AbsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AbsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AbsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AbsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java deleted file mode 100644 index e909704fcae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/abs/AbsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.abs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java deleted file mode 100644 index 8615d84a298..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrint/AccrIntPostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.accrint; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AccrIntPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AccrIntPostRequestBody} and sets the default values. - */ - public AccrIntPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AccrIntPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AccrIntPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AccrIntPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the calcMethod property value. The calcMethod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCalcMethod() { - return this.backingStore.get("calcMethod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("calcMethod", (n) -> { this.setCalcMethod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstInterest", (n) -> { this.setFirstInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("par", (n) -> { this.setPar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstInterest property value. The firstInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstInterest() { - return this.backingStore.get("firstInterest"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the par property value. The par property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPar() { - return this.backingStore.get("par"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("calcMethod", this.getCalcMethod()); - writer.writeObjectValue("firstInterest", this.getFirstInterest()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("par", this.getPar()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the calcMethod property value. The calcMethod property - * @param value Value to set for the calcMethod property. - */ - public void setCalcMethod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("calcMethod", value); - } - /** - * Sets the firstInterest property value. The firstInterest property - * @param value Value to set for the firstInterest property. - */ - public void setFirstInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstInterest", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the par property value. The par property - * @param value Value to set for the par property. - */ - public void setPar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("par", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java deleted file mode 100644 index d8e3e06cc3f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrint/AccrIntRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.accrint; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java deleted file mode 100644 index 78cf60a714c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrintm/AccrIntMPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.accrintm; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AccrIntMPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AccrIntMPostRequestBody} and sets the default values. - */ - public AccrIntMPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AccrIntMPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AccrIntMPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AccrIntMPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("par", (n) -> { this.setPar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the par property value. The par property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPar() { - return this.backingStore.get("par"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("par", this.getPar()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the par property value. The par property - * @param value Value to set for the par property. - */ - public void setPar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("par", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java deleted file mode 100644 index 821ee1f0a5b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/accrintm/AccrIntMRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.accrintm; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java deleted file mode 100644 index cfb766eaa70..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acos/AcosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acos; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcosPostRequestBody} and sets the default values. - */ - public AcosPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AcosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcosPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java deleted file mode 100644 index e64351b972a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acos/AcosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acos; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java deleted file mode 100644 index e8efe0a5d14..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acosh/AcoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acosh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcoshPostRequestBody} and sets the default values. - */ - public AcoshPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AcoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcoshPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java deleted file mode 100644 index b14f35a59f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acosh/AcoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acosh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java deleted file mode 100644 index e0d76941e19..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acot/AcotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acot; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcotPostRequestBody} and sets the default values. - */ - public AcotPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AcotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcotPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java deleted file mode 100644 index c1dd244a581..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acot/AcotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acot; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java deleted file mode 100644 index 906b122172f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acoth/AcothPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acoth; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AcothPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AcothPostRequestBody} and sets the default values. - */ - public AcothPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AcothPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AcothPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AcothPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java deleted file mode 100644 index cfac70ef554..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/acoth/AcothRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.acoth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java deleted file mode 100644 index 26e092619ec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.amordegrc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AmorDegrcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AmorDegrcPostRequestBody} and sets the default values. - */ - public AmorDegrcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AmorDegrcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AmorDegrcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AmorDegrcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the datePurchased property value. The datePurchased property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatePurchased() { - return this.backingStore.get("datePurchased"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("datePurchased", (n) -> { this.setDatePurchased(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstPeriod", (n) -> { this.setFirstPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstPeriod property value. The firstPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstPeriod() { - return this.backingStore.get("firstPeriod"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("datePurchased", this.getDatePurchased()); - writer.writeObjectValue("firstPeriod", this.getFirstPeriod()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the datePurchased property value. The datePurchased property - * @param value Value to set for the datePurchased property. - */ - public void setDatePurchased(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("datePurchased", value); - } - /** - * Sets the firstPeriod property value. The firstPeriod property - * @param value Value to set for the firstPeriod property. - */ - public void setFirstPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstPeriod", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java deleted file mode 100644 index aa9647e69a6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amordegrc/AmorDegrcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.amordegrc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java deleted file mode 100644 index 512d2304517..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amorlinc/AmorLincPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.amorlinc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AmorLincPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AmorLincPostRequestBody} and sets the default values. - */ - public AmorLincPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AmorLincPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AmorLincPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AmorLincPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the datePurchased property value. The datePurchased property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatePurchased() { - return this.backingStore.get("datePurchased"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("datePurchased", (n) -> { this.setDatePurchased(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstPeriod", (n) -> { this.setFirstPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstPeriod property value. The firstPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstPeriod() { - return this.backingStore.get("firstPeriod"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("datePurchased", this.getDatePurchased()); - writer.writeObjectValue("firstPeriod", this.getFirstPeriod()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the datePurchased property value. The datePurchased property - * @param value Value to set for the datePurchased property. - */ - public void setDatePurchased(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("datePurchased", value); - } - /** - * Sets the firstPeriod property value. The firstPeriod property - * @param value Value to set for the firstPeriod property. - */ - public void setFirstPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstPeriod", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java deleted file mode 100644 index f1222556bcd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/amorlinc/AmorLincRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.amorlinc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java deleted file mode 100644 index b3f0b63530d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/and/AndPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.and; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AndPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AndPostRequestBody} and sets the default values. - */ - public AndPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AndPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AndPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AndPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java deleted file mode 100644 index 677c1cb949a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/and/AndRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.and; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java deleted file mode 100644 index 8b7ae6bbde8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/arabic/ArabicPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.arabic; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ArabicPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ArabicPostRequestBody} and sets the default values. - */ - public ArabicPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ArabicPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ArabicPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ArabicPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java deleted file mode 100644 index dd040967725..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/arabic/ArabicRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.arabic; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java deleted file mode 100644 index 7debcfde737..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/areas/AreasPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.areas; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AreasPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AreasPostRequestBody} and sets the default values. - */ - public AreasPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AreasPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AreasPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AreasPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java deleted file mode 100644 index 801721289d7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/areas/AreasRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.areas; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java deleted file mode 100644 index 1bd8487cf87..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asc/AscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AscPostRequestBody} and sets the default values. - */ - public AscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java deleted file mode 100644 index 23760ca7a1d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asc/AscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java deleted file mode 100644 index 8d8ef94b353..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asin/AsinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AsinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AsinPostRequestBody} and sets the default values. - */ - public AsinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AsinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AsinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AsinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java deleted file mode 100644 index 2499210ded4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asin/AsinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java deleted file mode 100644 index 9ee8b181d67..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asinh/AsinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asinh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AsinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AsinhPostRequestBody} and sets the default values. - */ - public AsinhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AsinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AsinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AsinhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java deleted file mode 100644 index 1784669d326..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/asinh/AsinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.asinh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java deleted file mode 100644 index 6e1d95cac35..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan/AtanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atan; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AtanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AtanPostRequestBody} and sets the default values. - */ - public AtanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AtanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AtanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AtanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java deleted file mode 100644 index dd26b044f68..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan/AtanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atan; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java deleted file mode 100644 index 7ab8a57549b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan2/Atan2PostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atan2; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Atan2PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Atan2PostRequestBody} and sets the default values. - */ - public Atan2PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Atan2PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Atan2PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Atan2PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("xNum", (n) -> { this.setXNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yNum", (n) -> { this.setYNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the xNum property value. The xNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getXNum() { - return this.backingStore.get("xNum"); - } - /** - * Gets the yNum property value. The yNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYNum() { - return this.backingStore.get("yNum"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("xNum", this.getXNum()); - writer.writeObjectValue("yNum", this.getYNum()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the xNum property value. The xNum property - * @param value Value to set for the xNum property. - */ - public void setXNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("xNum", value); - } - /** - * Sets the yNum property value. The yNum property - * @param value Value to set for the yNum property. - */ - public void setYNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java deleted file mode 100644 index e977c7e3ab6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atan2/Atan2RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atan2; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java deleted file mode 100644 index 6418726af6d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atanh/AtanhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atanh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AtanhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AtanhPostRequestBody} and sets the default values. - */ - public AtanhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AtanhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AtanhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AtanhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java deleted file mode 100644 index 9c324a64596..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/atanh/AtanhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.atanh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java deleted file mode 100644 index 732ad0d9f57..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/avedev/AveDevPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.avedev; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AveDevPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AveDevPostRequestBody} and sets the default values. - */ - public AveDevPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AveDevPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AveDevPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AveDevPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java deleted file mode 100644 index c91dbd02358..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/avedev/AveDevRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.avedev; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java deleted file mode 100644 index 07e49a6afb3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/average/AveragePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.average; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AveragePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AveragePostRequestBody} and sets the default values. - */ - public AveragePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AveragePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AveragePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AveragePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java deleted file mode 100644 index eff94d43c6e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/average/AverageRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.average; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java deleted file mode 100644 index 29a0c9e570a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averagea/AverageAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averagea; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageAPostRequestBody} and sets the default values. - */ - public AverageAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AverageAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java deleted file mode 100644 index 57846719d4c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averagea/AverageARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averagea; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java deleted file mode 100644 index db28f5e6d8c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageif/AverageIfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averageif; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageIfPostRequestBody} and sets the default values. - */ - public AverageIfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AverageIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageIfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the averageRange property value. The averageRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAverageRange() { - return this.backingStore.get("averageRange"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("averageRange", (n) -> { this.setAverageRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("averageRange", this.getAverageRange()); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the averageRange property value. The averageRange property - * @param value Value to set for the averageRange property. - */ - public void setAverageRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("averageRange", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java deleted file mode 100644 index 86795a484d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageif/AverageIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averageif; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java deleted file mode 100644 index 68b2eb7bcc8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageifs/AverageIfsPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averageifs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AverageIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AverageIfsPostRequestBody} and sets the default values. - */ - public AverageIfsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AverageIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AverageIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AverageIfsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the averageRange property value. The averageRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAverageRange() { - return this.backingStore.get("averageRange"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("averageRange", (n) -> { this.setAverageRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("averageRange", this.getAverageRange()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the averageRange property value. The averageRange property - * @param value Value to set for the averageRange property. - */ - public void setAverageRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("averageRange", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java deleted file mode 100644 index 08e772d9315..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/averageifs/AverageIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.averageifs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java deleted file mode 100644 index b7611e5a61c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bahttext/BahtTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bahttext; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BahtTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BahtTextPostRequestBody} and sets the default values. - */ - public BahtTextPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BahtTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BahtTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BahtTextPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java deleted file mode 100644 index 08c9b5aa1d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bahttext/BahtTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bahttext; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java deleted file mode 100644 index 9c0c66cafc1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/base/BasePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.base; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BasePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BasePostRequestBody} and sets the default values. - */ - public BasePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BasePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BasePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BasePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("minLength", (n) -> { this.setMinLength(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("radix", (n) -> { this.setRadix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the minLength property value. The minLength property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMinLength() { - return this.backingStore.get("minLength"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the radix property value. The radix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRadix() { - return this.backingStore.get("radix"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("minLength", this.getMinLength()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("radix", this.getRadix()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the minLength property value. The minLength property - * @param value Value to set for the minLength property. - */ - public void setMinLength(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("minLength", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the radix property value. The radix property - * @param value Value to set for the radix property. - */ - public void setRadix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("radix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java deleted file mode 100644 index a47049ae942..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/base/BaseRequestBuilderEscaped.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.base; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java deleted file mode 100644 index fa0f2d71481..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besseli/BesselIPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besseli; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselIPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselIPostRequestBody} and sets the default values. - */ - public BesselIPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BesselIPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselIPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselIPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java deleted file mode 100644 index efa11c50d7b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besseli/BesselIRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besseli; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java deleted file mode 100644 index 7eec61db4e9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselj/BesselJPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besselj; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselJPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselJPostRequestBody} and sets the default values. - */ - public BesselJPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BesselJPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselJPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselJPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java deleted file mode 100644 index ad4125f0f04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselj/BesselJRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besselj; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java deleted file mode 100644 index c37c357a366..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselk/BesselKPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besselk; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselKPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselKPostRequestBody} and sets the default values. - */ - public BesselKPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BesselKPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselKPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselKPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java deleted file mode 100644 index c4ddd940463..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/besselk/BesselKRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.besselk; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java deleted file mode 100644 index e0cab8c097e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bessely/BesselYPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bessely; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BesselYPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BesselYPostRequestBody} and sets the default values. - */ - public BesselYPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BesselYPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BesselYPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BesselYPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java deleted file mode 100644 index 559ad71072b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bessely/BesselYRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bessely; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java deleted file mode 100644 index abacb0c1abf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_dist/BetaDistPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.beta_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BetaDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BetaDistPostRequestBody} and sets the default values. - */ - public BetaDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BetaDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BetaDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BetaDistPostRequestBody(); - } - /** - * Gets the A property value. The A property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getA() { - return this.backingStore.get("a"); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the B property value. The B property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getB() { - return this.backingStore.get("b"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("A", (n) -> { this.setA(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("B", (n) -> { this.setB(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("A", this.getA()); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("B", this.getB()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the A property value. The A property - * @param value Value to set for the A property. - */ - public void setA(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("a", value); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the B property value. The B property - * @param value Value to set for the B property. - */ - public void setB(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("b", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java deleted file mode 100644 index 66cfc313932..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_dist/BetaDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.beta_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java deleted file mode 100644 index da41ac2cc8d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_inv/BetaInvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.beta_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BetaInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BetaInvPostRequestBody} and sets the default values. - */ - public BetaInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BetaInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BetaInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BetaInvPostRequestBody(); - } - /** - * Gets the A property value. The A property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getA() { - return this.backingStore.get("a"); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the B property value. The B property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getB() { - return this.backingStore.get("b"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("A", (n) -> { this.setA(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("B", (n) -> { this.setB(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("A", this.getA()); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("B", this.getB()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the A property value. The A property - * @param value Value to set for the A property. - */ - public void setA(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("a", value); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the B property value. The B property - * @param value Value to set for the B property. - */ - public void setB(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("b", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java deleted file mode 100644 index a481074a1d2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/beta_inv/BetaInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.beta_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java deleted file mode 100644 index 29adca47e09..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2dec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2DecPostRequestBody} and sets the default values. - */ - public Bin2DecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Bin2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2DecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java deleted file mode 100644 index 6ea1889e27f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2dec/Bin2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2dec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java deleted file mode 100644 index 62683ca90b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2hex; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2HexPostRequestBody} and sets the default values. - */ - public Bin2HexPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Bin2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2HexPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java deleted file mode 100644 index 970d9fdbc9f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2hex/Bin2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2hex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java deleted file mode 100644 index a9b3810d063..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2oct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Bin2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Bin2OctPostRequestBody} and sets the default values. - */ - public Bin2OctPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Bin2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Bin2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Bin2OctPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java deleted file mode 100644 index efd070ac310..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bin2oct/Bin2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bin2oct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java deleted file mode 100644 index 8b91c6d8201..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist/BinomDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomDistPostRequestBody} and sets the default values. - */ - public BinomDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BinomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("numberS", this.getNumberS()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java deleted file mode 100644 index 0acdb27ed63..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist/BinomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java deleted file mode 100644 index 2451cf5dce4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_dist_range; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomDistRangePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomDistRangePostRequestBody} and sets the default values. - */ - public BinomDistRangePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BinomDistRangePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomDistRangePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomDistRangePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS2", (n) -> { this.setNumberS2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the numberS2 property value. The numberS2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS2() { - return this.backingStore.get("numberS2"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numberS", this.getNumberS()); - writer.writeObjectValue("numberS2", this.getNumberS2()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the numberS2 property value. The numberS2 property - * @param value Value to set for the numberS2 property. - */ - public void setNumberS2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS2", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java deleted file mode 100644 index da0d475e340..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_dist_range/BinomDistRangeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_dist_range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java deleted file mode 100644 index 8a9475cfcf1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_inv/BinomInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BinomInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BinomInvPostRequestBody} and sets the default values. - */ - public BinomInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BinomInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BinomInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BinomInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("trials", (n) -> { this.setTrials(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Gets the trials property value. The trials property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTrials() { - return this.backingStore.get("trials"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeObjectValue("trials", this.getTrials()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } - /** - * Sets the trials property value. The trials property - * @param value Value to set for the trials property. - */ - public void setTrials(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("trials", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java deleted file mode 100644 index 726911b5eba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/binom_inv/BinomInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.binom_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java deleted file mode 100644 index 8e6df4b6efb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitand/BitandPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitand; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitandPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitandPostRequestBody} and sets the default values. - */ - public BitandPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitandPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitandPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitandPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java deleted file mode 100644 index e3e51eff84d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitand/BitandRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitand; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java deleted file mode 100644 index 03ec4ca6788..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitlshift; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitlshiftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitlshiftPostRequestBody} and sets the default values. - */ - public BitlshiftPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitlshiftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitlshiftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitlshiftPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("shiftAmount", (n) -> { this.setShiftAmount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the shiftAmount property value. The shiftAmount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getShiftAmount() { - return this.backingStore.get("shiftAmount"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("shiftAmount", this.getShiftAmount()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the shiftAmount property value. The shiftAmount property - * @param value Value to set for the shiftAmount property. - */ - public void setShiftAmount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("shiftAmount", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java deleted file mode 100644 index 36e6e1b2593..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitlshift/BitlshiftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitlshift; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java deleted file mode 100644 index ee91eabcc64..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitor/BitorPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitor; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitorPostRequestBody} and sets the default values. - */ - public BitorPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitorPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java deleted file mode 100644 index c09115e6570..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitor/BitorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java deleted file mode 100644 index f227ae3f2d0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitrshift; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitrshiftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitrshiftPostRequestBody} and sets the default values. - */ - public BitrshiftPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitrshiftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitrshiftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitrshiftPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("shiftAmount", (n) -> { this.setShiftAmount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the shiftAmount property value. The shiftAmount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getShiftAmount() { - return this.backingStore.get("shiftAmount"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("shiftAmount", this.getShiftAmount()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the shiftAmount property value. The shiftAmount property - * @param value Value to set for the shiftAmount property. - */ - public void setShiftAmount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("shiftAmount", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java deleted file mode 100644 index 0c5aba32eb1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitrshift/BitrshiftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitrshift; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java deleted file mode 100644 index e06c950d804..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitxor/BitxorPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitxor; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class BitxorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link BitxorPostRequestBody} and sets the default values. - */ - public BitxorPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link BitxorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static BitxorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new BitxorPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java deleted file mode 100644 index bec484cc4f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/bitxor/BitxorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.bitxor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java deleted file mode 100644 index a1114ca7b20..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ceiling_math; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CeilingMathPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CeilingMathPostRequestBody} and sets the default values. - */ - public CeilingMathPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CeilingMathPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CeilingMathPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CeilingMathPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mode", (n) -> { this.setMode(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mode property value. The mode property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMode() { - return this.backingStore.get("mode"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mode", this.getMode()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mode property value. The mode property - * @param value Value to set for the mode property. - */ - public void setMode(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mode", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java deleted file mode 100644 index 11d60de3e11..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_math/CeilingMathRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ceiling_math; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java deleted file mode 100644 index ce96a950e84..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPrecisePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ceiling_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CeilingPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CeilingPrecisePostRequestBody} and sets the default values. - */ - public CeilingPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CeilingPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CeilingPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CeilingPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java deleted file mode 100644 index 1fe7caeea1d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ceiling_precise/CeilingPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ceiling_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java deleted file mode 100644 index a54e91ea612..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/charescaped/CharPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.charescaped; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CharPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CharPostRequestBody} and sets the default values. - */ - public CharPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CharPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CharPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CharPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java deleted file mode 100644 index fddb43264a9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/charescaped/CharRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.charescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java deleted file mode 100644 index 77257c5954a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqDistPostRequestBody} and sets the default values. - */ - public ChiSqDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChiSqDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java deleted file mode 100644 index 6d7aa3853c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist/ChiSqDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java deleted file mode 100644 index dce0fb4f939..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_dist_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqDistRTPostRequestBody} and sets the default values. - */ - public ChiSqDistRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChiSqDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqDistRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java deleted file mode 100644 index 47b1de20367..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_dist_rt/ChiSqDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_dist_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java deleted file mode 100644 index 1d76313f22d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqInvPostRequestBody} and sets the default values. - */ - public ChiSqInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChiSqInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java deleted file mode 100644 index 295a9c99b11..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv/ChiSqInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java deleted file mode 100644 index 17dd949db4d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_inv_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChiSqInvRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChiSqInvRTPostRequestBody} and sets the default values. - */ - public ChiSqInvRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChiSqInvRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChiSqInvRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChiSqInvRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java deleted file mode 100644 index bf521248e0c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/chisq_inv_rt/ChiSqInvRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.chisq_inv_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java deleted file mode 100644 index cf72ee4dffe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/choose/ChoosePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.choose; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChoosePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ChoosePostRequestBody} and sets the default values. - */ - public ChoosePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ChoosePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ChoosePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ChoosePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("indexNum", (n) -> { this.setIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the indexNum property value. The indexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIndexNum() { - return this.backingStore.get("indexNum"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("indexNum", this.getIndexNum()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the indexNum property value. The indexNum property - * @param value Value to set for the indexNum property. - */ - public void setIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("indexNum", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java deleted file mode 100644 index eb7f07a5712..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/choose/ChooseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.choose; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java deleted file mode 100644 index ef5a982a35f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/clean/CleanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.clean; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CleanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CleanPostRequestBody} and sets the default values. - */ - public CleanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CleanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CleanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CleanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java deleted file mode 100644 index 65c648a4689..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/clean/CleanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.clean; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java deleted file mode 100644 index 7af1d16836f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/code/CodePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.code; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CodePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CodePostRequestBody} and sets the default values. - */ - public CodePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CodePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CodePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CodePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java deleted file mode 100644 index 434a20111b2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/code/CodeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.code; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java deleted file mode 100644 index 081279a0f82..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/columns/ColumnsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.columns; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ColumnsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ColumnsPostRequestBody} and sets the default values. - */ - public ColumnsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ColumnsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ColumnsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ColumnsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 4b1e87264ef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java deleted file mode 100644 index eb8fba87e0f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combin/CombinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.combin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CombinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CombinPostRequestBody} and sets the default values. - */ - public CombinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CombinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CombinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CombinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java deleted file mode 100644 index 51545b6903e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combin/CombinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.combin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java deleted file mode 100644 index a456edba958..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combina/CombinaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.combina; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CombinaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CombinaPostRequestBody} and sets the default values. - */ - public CombinaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CombinaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CombinaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CombinaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java deleted file mode 100644 index c5164d10531..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/combina/CombinaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.combina; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java deleted file mode 100644 index 60d7642df05..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/complex/ComplexPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.complex; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ComplexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ComplexPostRequestBody} and sets the default values. - */ - public ComplexPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ComplexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ComplexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ComplexPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("iNum", (n) -> { this.setINum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("realNum", (n) -> { this.setRealNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("suffix", (n) -> { this.setSuffix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the iNum property value. The iNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getINum() { - return this.backingStore.get("iNum"); - } - /** - * Gets the realNum property value. The realNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRealNum() { - return this.backingStore.get("realNum"); - } - /** - * Gets the suffix property value. The suffix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSuffix() { - return this.backingStore.get("suffix"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("iNum", this.getINum()); - writer.writeObjectValue("realNum", this.getRealNum()); - writer.writeObjectValue("suffix", this.getSuffix()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the iNum property value. The iNum property - * @param value Value to set for the iNum property. - */ - public void setINum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("iNum", value); - } - /** - * Sets the realNum property value. The realNum property - * @param value Value to set for the realNum property. - */ - public void setRealNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("realNum", value); - } - /** - * Sets the suffix property value. The suffix property - * @param value Value to set for the suffix property. - */ - public void setSuffix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("suffix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java deleted file mode 100644 index e74cbb56483..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/complex/ComplexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.complex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java deleted file mode 100644 index adc49495bff..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/concatenate/ConcatenatePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.concatenate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConcatenatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConcatenatePostRequestBody} and sets the default values. - */ - public ConcatenatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ConcatenatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConcatenatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConcatenatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java deleted file mode 100644 index ac7d39e273b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/concatenate/ConcatenateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.concatenate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java deleted file mode 100644 index a630fe6e95c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.confidence_norm; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConfidenceNormPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConfidenceNormPostRequestBody} and sets the default values. - */ - public ConfidenceNormPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ConfidenceNormPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConfidenceNormPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConfidenceNormPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("size", (n) -> { this.setSize(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the size property value. The size property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSize() { - return this.backingStore.get("size"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("size", this.getSize()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the size property value. The size property - * @param value Value to set for the size property. - */ - public void setSize(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("size", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java deleted file mode 100644 index a5cbb4eb59f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_norm/ConfidenceNormRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.confidence_norm; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java deleted file mode 100644 index 0f92c2a88fd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.confidence_t; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConfidenceTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConfidenceTPostRequestBody} and sets the default values. - */ - public ConfidenceTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ConfidenceTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConfidenceTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConfidenceTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("size", (n) -> { this.setSize(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the size property value. The size property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSize() { - return this.backingStore.get("size"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("size", this.getSize()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the size property value. The size property - * @param value Value to set for the size property. - */ - public void setSize(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("size", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java deleted file mode 100644 index 8d95bf6fbb1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/confidence_t/ConfidenceTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.confidence_t; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java deleted file mode 100644 index 8c239ce249f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/convert/ConvertPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.convert; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ConvertPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ConvertPostRequestBody} and sets the default values. - */ - public ConvertPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ConvertPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ConvertPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ConvertPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fromUnit", (n) -> { this.setFromUnit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("toUnit", (n) -> { this.setToUnit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fromUnit property value. The fromUnit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFromUnit() { - return this.backingStore.get("fromUnit"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the toUnit property value. The toUnit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getToUnit() { - return this.backingStore.get("toUnit"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fromUnit", this.getFromUnit()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("toUnit", this.getToUnit()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fromUnit property value. The fromUnit property - * @param value Value to set for the fromUnit property. - */ - public void setFromUnit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fromUnit", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the toUnit property value. The toUnit property - * @param value Value to set for the toUnit property. - */ - public void setToUnit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("toUnit", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java deleted file mode 100644 index bb2bfed4cc5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/convert/ConvertRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.convert; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java deleted file mode 100644 index 7dff79ae232..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cos/CosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cos; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CosPostRequestBody} and sets the default values. - */ - public CosPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CosPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java deleted file mode 100644 index 213d2372eaa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cos/CosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cos; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java deleted file mode 100644 index baa228995e0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cosh/CoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cosh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoshPostRequestBody} and sets the default values. - */ - public CoshPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoshPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java deleted file mode 100644 index 90eb9626b22..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cosh/CoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cosh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java deleted file mode 100644 index ae11c485c79..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cot/CotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cot; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CotPostRequestBody} and sets the default values. - */ - public CotPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CotPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java deleted file mode 100644 index 7a412bf8e4b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cot/CotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cot; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java deleted file mode 100644 index c227e250fc5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coth/CothPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coth; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CothPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CothPostRequestBody} and sets the default values. - */ - public CothPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CothPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CothPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CothPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java deleted file mode 100644 index 417f9683b30..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coth/CothRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java deleted file mode 100644 index 42f1b34075b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/count/CountPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.count; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountPostRequestBody} and sets the default values. - */ - public CountPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java deleted file mode 100644 index 12c5da2ae0e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/count/CountRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java deleted file mode 100644 index 697870949c4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/counta/CountAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.counta; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountAPostRequestBody} and sets the default values. - */ - public CountAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java deleted file mode 100644 index 2048ed826d2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/counta/CountARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.counta; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java deleted file mode 100644 index 2fa10851275..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countblank/CountBlankPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countblank; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountBlankPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountBlankPostRequestBody} and sets the default values. - */ - public CountBlankPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountBlankPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountBlankPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountBlankPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("range", this.getRange()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java deleted file mode 100644 index 7fca38d46ab..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countblank/CountBlankRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countblank; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java deleted file mode 100644 index a691626e31b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countif/CountIfPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countif; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountIfPostRequestBody} and sets the default values. - */ - public CountIfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountIfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java deleted file mode 100644 index b4f0c525dcd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countif/CountIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countif; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java deleted file mode 100644 index d603d3be1a9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countifs/CountIfsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countifs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CountIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CountIfsPostRequestBody} and sets the default values. - */ - public CountIfsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CountIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CountIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CountIfsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java deleted file mode 100644 index cd7647d9ee3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/countifs/CountIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.countifs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java deleted file mode 100644 index 4714762b0d3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdaybs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDayBsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDayBsPostRequestBody} and sets the default values. - */ - public CoupDayBsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupDayBsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDayBsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDayBsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java deleted file mode 100644 index a820e8406c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaybs/CoupDayBsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdaybs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java deleted file mode 100644 index d3d3daba58b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdays/CoupDaysPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdays; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDaysPostRequestBody} and sets the default values. - */ - public CoupDaysPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupDaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDaysPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java deleted file mode 100644 index 8bca9cc30be..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdays/CoupDaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdays; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java deleted file mode 100644 index bbc3425413a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdaysnc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupDaysNcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupDaysNcPostRequestBody} and sets the default values. - */ - public CoupDaysNcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupDaysNcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupDaysNcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupDaysNcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java deleted file mode 100644 index 6a0207ea9a5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupdaysnc/CoupDaysNcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupdaysnc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java deleted file mode 100644 index cae300e0340..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupncd/CoupNcdPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupncd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupNcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupNcdPostRequestBody} and sets the default values. - */ - public CoupNcdPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupNcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupNcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupNcdPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java deleted file mode 100644 index 5956f84c116..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupncd/CoupNcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupncd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java deleted file mode 100644 index c5bcdec7b75..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupnum/CoupNumPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupnum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupNumPostRequestBody} and sets the default values. - */ - public CoupNumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupNumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java deleted file mode 100644 index 880ada868b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/coupnum/CoupNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.coupnum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java deleted file mode 100644 index 8fdd7c15bb2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/couppcd/CoupPcdPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.couppcd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CoupPcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CoupPcdPostRequestBody} and sets the default values. - */ - public CoupPcdPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CoupPcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CoupPcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CoupPcdPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java deleted file mode 100644 index 6dbb8045d5d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/couppcd/CoupPcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.couppcd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java deleted file mode 100644 index 8364f1d85e5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csc/CscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.csc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CscPostRequestBody} and sets the default values. - */ - public CscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java deleted file mode 100644 index 06c9b964b6d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csc/CscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.csc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java deleted file mode 100644 index cf52be7f2b9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csch/CschPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.csch; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CschPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CschPostRequestBody} and sets the default values. - */ - public CschPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CschPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CschPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CschPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java deleted file mode 100644 index 2030f2ded73..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/csch/CschRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.csch; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java deleted file mode 100644 index 10488bad879..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cumipmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CumIPmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CumIPmtPostRequestBody} and sets the default values. - */ - public CumIPmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CumIPmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CumIPmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CumIPmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java deleted file mode 100644 index 49dbcaab461..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumipmt/CumIPmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cumipmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java deleted file mode 100644 index 79a76477083..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumprinc/CumPrincPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cumprinc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CumPrincPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link CumPrincPostRequestBody} and sets the default values. - */ - public CumPrincPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link CumPrincPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static CumPrincPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new CumPrincPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java deleted file mode 100644 index 1fc724dcf84..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/cumprinc/CumPrincRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.cumprinc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java deleted file mode 100644 index 73180b76db5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/date/DatePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.date; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DatePostRequestBody} and sets the default values. - */ - public DatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the day property value. The day property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDay() { - return this.backingStore.get("day"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("day", (n) -> { this.setDay(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("month", (n) -> { this.setMonth(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("year", (n) -> { this.setYear(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the month property value. The month property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonth() { - return this.backingStore.get("month"); - } - /** - * Gets the year property value. The year property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYear() { - return this.backingStore.get("year"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("day", this.getDay()); - writer.writeObjectValue("month", this.getMonth()); - writer.writeObjectValue("year", this.getYear()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the day property value. The day property - * @param value Value to set for the day property. - */ - public void setDay(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("day", value); - } - /** - * Sets the month property value. The month property - * @param value Value to set for the month property. - */ - public void setMonth(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("month", value); - } - /** - * Sets the year property value. The year property - * @param value Value to set for the year property. - */ - public void setYear(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("year", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java deleted file mode 100644 index caf57522f54..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/date/DateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.date; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java deleted file mode 100644 index f7e25636dba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/datevalue/DatevaluePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.datevalue; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DatevaluePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DatevaluePostRequestBody} and sets the default values. - */ - public DatevaluePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DatevaluePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DatevaluePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DatevaluePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the dateText property value. The dateText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDateText() { - return this.backingStore.get("dateText"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("dateText", (n) -> { this.setDateText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("dateText", this.getDateText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the dateText property value. The dateText property - * @param value Value to set for the dateText property. - */ - public void setDateText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dateText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java deleted file mode 100644 index 3dcb553ec9a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/datevalue/DatevalueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.datevalue; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java deleted file mode 100644 index ca853547324..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/daverage/DaveragePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.daverage; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DaveragePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DaveragePostRequestBody} and sets the default values. - */ - public DaveragePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DaveragePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DaveragePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DaveragePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java deleted file mode 100644 index b3724b26e00..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/daverage/DaverageRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.daverage; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java deleted file mode 100644 index 53148783c81..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/day/DayPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.day; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DayPostRequestBody} and sets the default values. - */ - public DayPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DayPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java deleted file mode 100644 index 17398e00809..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/day/DayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.day; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java deleted file mode 100644 index d7612e39921..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days/DaysPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.days; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DaysPostRequestBody} and sets the default values. - */ - public DaysPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DaysPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java deleted file mode 100644 index 0db96765e17..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days/DaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.days; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java deleted file mode 100644 index f55433fb824..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days360/Days360PostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.days360; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Days360PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Days360PostRequestBody} and sets the default values. - */ - public Days360PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Days360PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Days360PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Days360PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("method", (n) -> { this.setMethod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the method property value. The method property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMethod() { - return this.backingStore.get("method"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("method", this.getMethod()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the method property value. The method property - * @param value Value to set for the method property. - */ - public void setMethod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("method", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java deleted file mode 100644 index f0f6eb91fd1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/days360/Days360RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.days360; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java deleted file mode 100644 index 7babf306a37..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/db/DbPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.db; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DbPostRequestBody} and sets the default values. - */ - public DbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("month", (n) -> { this.setMonth(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the month property value. The month property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonth() { - return this.backingStore.get("month"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("month", this.getMonth()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the month property value. The month property - * @param value Value to set for the month property. - */ - public void setMonth(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("month", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java deleted file mode 100644 index 94959360b53..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/db/DbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.db; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java deleted file mode 100644 index 3ab2f55ea80..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dbcs/DbcsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dbcs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DbcsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DbcsPostRequestBody} and sets the default values. - */ - public DbcsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DbcsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DbcsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DbcsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java deleted file mode 100644 index 0f2f1ac3c8c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dbcs/DbcsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dbcs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java deleted file mode 100644 index 518f7b8bf2e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcount/DcountPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dcount; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DcountPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DcountPostRequestBody} and sets the default values. - */ - public DcountPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DcountPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DcountPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DcountPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java deleted file mode 100644 index 111c8965aa0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcount/DcountRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dcount; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java deleted file mode 100644 index 954205299f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcounta/DcountAPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dcounta; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DcountAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DcountAPostRequestBody} and sets the default values. - */ - public DcountAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DcountAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DcountAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DcountAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java deleted file mode 100644 index 6af42146a90..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dcounta/DcountARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dcounta; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java deleted file mode 100644 index 19a06cc14e7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ddb/DdbPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ddb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DdbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DdbPostRequestBody} and sets the default values. - */ - public DdbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DdbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DdbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DdbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the factor property value. The factor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFactor() { - return this.backingStore.get("factor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("factor", (n) -> { this.setFactor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("period", (n) -> { this.setPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the period property value. The period property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPeriod() { - return this.backingStore.get("period"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("factor", this.getFactor()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("period", this.getPeriod()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the factor property value. The factor property - * @param value Value to set for the factor property. - */ - public void setFactor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("factor", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the period property value. The period property - * @param value Value to set for the period property. - */ - public void setPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("period", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java deleted file mode 100644 index 018651aba28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ddb/DdbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ddb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java deleted file mode 100644 index ef5b7cf16d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2bin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2BinPostRequestBody} and sets the default values. - */ - public Dec2BinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Dec2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2BinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java deleted file mode 100644 index 1460f009624..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2bin/Dec2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2bin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java deleted file mode 100644 index 9144581d8d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2hex; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2HexPostRequestBody} and sets the default values. - */ - public Dec2HexPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Dec2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2HexPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java deleted file mode 100644 index 72529417e51..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2hex/Dec2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2hex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java deleted file mode 100644 index 74d86a2d3a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2oct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Dec2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Dec2OctPostRequestBody} and sets the default values. - */ - public Dec2OctPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Dec2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Dec2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Dec2OctPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java deleted file mode 100644 index 746e3a2924e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dec2oct/Dec2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dec2oct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java deleted file mode 100644 index e6a30a8f800..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/decimal/DecimalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.decimal; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DecimalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DecimalPostRequestBody} and sets the default values. - */ - public DecimalPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DecimalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DecimalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DecimalPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("radix", (n) -> { this.setRadix(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the radix property value. The radix property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRadix() { - return this.backingStore.get("radix"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("radix", this.getRadix()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the radix property value. The radix property - * @param value Value to set for the radix property. - */ - public void setRadix(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("radix", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java deleted file mode 100644 index 8e7401a4500..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/decimal/DecimalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.decimal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java deleted file mode 100644 index 0aaa470abe9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/degrees/DegreesPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.degrees; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DegreesPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DegreesPostRequestBody} and sets the default values. - */ - public DegreesPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DegreesPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DegreesPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DegreesPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the angle property value. The angle property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAngle() { - return this.backingStore.get("angle"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("angle", (n) -> { this.setAngle(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("angle", this.getAngle()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the angle property value. The angle property - * @param value Value to set for the angle property. - */ - public void setAngle(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("angle", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java deleted file mode 100644 index 933a249d185..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/degrees/DegreesRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.degrees; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java deleted file mode 100644 index e7ec0c70dc6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/delta/DeltaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.delta; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DeltaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DeltaPostRequestBody} and sets the default values. - */ - public DeltaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DeltaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DeltaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DeltaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number1", (n) -> { this.setNumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number2", (n) -> { this.setNumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number1 property value. The number1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber1() { - return this.backingStore.get("number1"); - } - /** - * Gets the number2 property value. The number2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber2() { - return this.backingStore.get("number2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number1", this.getNumber1()); - writer.writeObjectValue("number2", this.getNumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number1 property value. The number1 property - * @param value Value to set for the number1 property. - */ - public void setNumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number1", value); - } - /** - * Sets the number2 property value. The number2 property - * @param value Value to set for the number2 property. - */ - public void setNumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java deleted file mode 100644 index 09d91f62486..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.delta; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java deleted file mode 100644 index 8e7717932fe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/devsq/DevSqPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.devsq; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DevSqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DevSqPostRequestBody} and sets the default values. - */ - public DevSqPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DevSqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DevSqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DevSqPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java deleted file mode 100644 index 5c158646337..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/devsq/DevSqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.devsq; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java deleted file mode 100644 index 97c8909c2c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dget/DgetPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dget; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DgetPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DgetPostRequestBody} and sets the default values. - */ - public DgetPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DgetPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DgetPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DgetPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java deleted file mode 100644 index ae5b4130eed..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dget/DgetRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dget; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java deleted file mode 100644 index c2e79c08a47..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/disc/DiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.disc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DiscPostRequestBody} and sets the default values. - */ - public DiscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DiscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java deleted file mode 100644 index 8262ae2646f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/disc/DiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.disc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java deleted file mode 100644 index 7b7296736a9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmax/DmaxPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dmax; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DmaxPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DmaxPostRequestBody} and sets the default values. - */ - public DmaxPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DmaxPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DmaxPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DmaxPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java deleted file mode 100644 index e023e34397e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmax/DmaxRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dmax; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java deleted file mode 100644 index 54bfd5ac7da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmin/DminPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dmin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DminPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DminPostRequestBody} and sets the default values. - */ - public DminPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DminPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DminPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DminPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java deleted file mode 100644 index c5df33b3906..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dmin/DminRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dmin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java deleted file mode 100644 index b00734fd687..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollar/DollarPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollar; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarPostRequestBody} and sets the default values. - */ - public DollarPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DollarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimals", this.getDecimals()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java deleted file mode 100644 index 5bb900da531..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollar/DollarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollar; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java deleted file mode 100644 index b638f95ea6b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarde/DollarDePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollarde; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarDePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarDePostRequestBody} and sets the default values. - */ - public DollarDePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DollarDePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarDePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarDePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("fraction", (n) -> { this.setFraction(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("fractionalDollar", (n) -> { this.setFractionalDollar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fraction property value. The fraction property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFraction() { - return this.backingStore.get("fraction"); - } - /** - * Gets the fractionalDollar property value. The fractionalDollar property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFractionalDollar() { - return this.backingStore.get("fractionalDollar"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fraction", this.getFraction()); - writer.writeObjectValue("fractionalDollar", this.getFractionalDollar()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fraction property value. The fraction property - * @param value Value to set for the fraction property. - */ - public void setFraction(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fraction", value); - } - /** - * Sets the fractionalDollar property value. The fractionalDollar property - * @param value Value to set for the fractionalDollar property. - */ - public void setFractionalDollar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fractionalDollar", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java deleted file mode 100644 index 64ee4cd815e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarde/DollarDeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollarde; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java deleted file mode 100644 index d1704383b2e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarfr/DollarFrPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollarfr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DollarFrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DollarFrPostRequestBody} and sets the default values. - */ - public DollarFrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DollarFrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DollarFrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DollarFrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimalDollar property value. The decimalDollar property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimalDollar() { - return this.backingStore.get("decimalDollar"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimalDollar", (n) -> { this.setDecimalDollar(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("fraction", (n) -> { this.setFraction(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fraction property value. The fraction property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFraction() { - return this.backingStore.get("fraction"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimalDollar", this.getDecimalDollar()); - writer.writeObjectValue("fraction", this.getFraction()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimalDollar property value. The decimalDollar property - * @param value Value to set for the decimalDollar property. - */ - public void setDecimalDollar(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimalDollar", value); - } - /** - * Sets the fraction property value. The fraction property - * @param value Value to set for the fraction property. - */ - public void setFraction(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fraction", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java deleted file mode 100644 index b9ce7ded6b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dollarfr/DollarFrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dollarfr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java deleted file mode 100644 index 92e98f10ad9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dproduct/DproductPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dproduct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DproductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DproductPostRequestBody} and sets the default values. - */ - public DproductPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DproductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DproductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DproductPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java deleted file mode 100644 index 0ba0e89a76f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dproduct/DproductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dproduct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java deleted file mode 100644 index 7e6d41025b0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdev/DstDevPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dstdev; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DstDevPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DstDevPostRequestBody} and sets the default values. - */ - public DstDevPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DstDevPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DstDevPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DstDevPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java deleted file mode 100644 index 4267c1b341e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdev/DstDevRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dstdev; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java deleted file mode 100644 index 64877bc787a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdevp/DstDevPPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dstdevp; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DstDevPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DstDevPPostRequestBody} and sets the default values. - */ - public DstDevPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DstDevPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DstDevPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DstDevPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java deleted file mode 100644 index aef20bb2059..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dstdevp/DstDevPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dstdevp; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java deleted file mode 100644 index 7810a4357e2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dsum/DsumPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dsum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DsumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DsumPostRequestBody} and sets the default values. - */ - public DsumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DsumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DsumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DsumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java deleted file mode 100644 index 91a72aa1996..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dsum/DsumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dsum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java deleted file mode 100644 index 2395bb6cefb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/duration/DurationPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.duration; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DurationPostRequestBody} and sets the default values. - */ - public DurationPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DurationPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the coupon property value. The coupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoupon() { - return this.backingStore.get("coupon"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("coupon", (n) -> { this.setCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("coupon", this.getCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the coupon property value. The coupon property - * @param value Value to set for the coupon property. - */ - public void setCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java deleted file mode 100644 index a15c8e52571..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/duration/DurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.duration; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java deleted file mode 100644 index 2727a30fe9e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvar/DvarPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dvar; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DvarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DvarPostRequestBody} and sets the default values. - */ - public DvarPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DvarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DvarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DvarPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java deleted file mode 100644 index e9c34434007..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvar/DvarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dvar; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java deleted file mode 100644 index cf8d960e775..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvarp/DvarPPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dvarp; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class DvarPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link DvarPPostRequestBody} and sets the default values. - */ - public DvarPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link DvarPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static DvarPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new DvarPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * Gets the database property value. The database property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDatabase() { - return this.backingStore.get("database"); - } - /** - * Gets the field property value. The field property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getField() { - return this.backingStore.get("field"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("database", (n) -> { this.setDatabase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("field", (n) -> { this.setField(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("database", this.getDatabase()); - writer.writeObjectValue("field", this.getField()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the database property value. The database property - * @param value Value to set for the database property. - */ - public void setDatabase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("database", value); - } - /** - * Sets the field property value. The field property - * @param value Value to set for the field property. - */ - public void setField(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("field", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java deleted file mode 100644 index 7c8582187f3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/dvarp/DvarPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.dvarp; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java deleted file mode 100644 index febca8010ab..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ecma_ceiling; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EcmaCeilingPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EcmaCeilingPostRequestBody} and sets the default values. - */ - public EcmaCeilingPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EcmaCeilingPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EcmaCeilingPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EcmaCeilingPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java deleted file mode 100644 index de01202755c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ecma_ceiling/EcmaCeilingRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ecma_ceiling; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java deleted file mode 100644 index bae7eb308e6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/edate/EdatePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.edate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EdatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EdatePostRequestBody} and sets the default values. - */ - public EdatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EdatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EdatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EdatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("months", (n) -> { this.setMonths(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the months property value. The months property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonths() { - return this.backingStore.get("months"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("months", this.getMonths()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the months property value. The months property - * @param value Value to set for the months property. - */ - public void setMonths(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("months", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java deleted file mode 100644 index 934e1aa9b8e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/edate/EdateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.edate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java deleted file mode 100644 index 6a14425d053..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/effect/EffectPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.effect; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EffectPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EffectPostRequestBody} and sets the default values. - */ - public EffectPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EffectPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EffectPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EffectPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("nominalRate", (n) -> { this.setNominalRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("npery", (n) -> { this.setNpery(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nominalRate property value. The nominalRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNominalRate() { - return this.backingStore.get("nominalRate"); - } - /** - * Gets the npery property value. The npery property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNpery() { - return this.backingStore.get("npery"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("nominalRate", this.getNominalRate()); - writer.writeObjectValue("npery", this.getNpery()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the nominalRate property value. The nominalRate property - * @param value Value to set for the nominalRate property. - */ - public void setNominalRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nominalRate", value); - } - /** - * Sets the npery property value. The npery property - * @param value Value to set for the npery property. - */ - public void setNpery(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("npery", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java deleted file mode 100644 index 0839223ec8b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/effect/EffectRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.effect; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java deleted file mode 100644 index 559fabdcf77..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/eomonth/EoMonthPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.eomonth; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EoMonthPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EoMonthPostRequestBody} and sets the default values. - */ - public EoMonthPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EoMonthPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EoMonthPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EoMonthPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("months", (n) -> { this.setMonths(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the months property value. The months property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMonths() { - return this.backingStore.get("months"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("months", this.getMonths()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the months property value. The months property - * @param value Value to set for the months property. - */ - public void setMonths(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("months", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java deleted file mode 100644 index e162faca164..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/eomonth/EoMonthRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.eomonth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java deleted file mode 100644 index f18db00b082..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf/ErfPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erf; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfPostRequestBody} and sets the default values. - */ - public ErfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("lowerLimit", (n) -> { this.setLowerLimit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("upperLimit", (n) -> { this.setUpperLimit(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lowerLimit property value. The lowerLimit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLowerLimit() { - return this.backingStore.get("lowerLimit"); - } - /** - * Gets the upperLimit property value. The upperLimit property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getUpperLimit() { - return this.backingStore.get("upperLimit"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("lowerLimit", this.getLowerLimit()); - writer.writeObjectValue("upperLimit", this.getUpperLimit()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the lowerLimit property value. The lowerLimit property - * @param value Value to set for the lowerLimit property. - */ - public void setLowerLimit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lowerLimit", value); - } - /** - * Sets the upperLimit property value. The upperLimit property - * @param value Value to set for the upperLimit property. - */ - public void setUpperLimit(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("upperLimit", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java deleted file mode 100644 index ce03e305060..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf/ErfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erf; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java deleted file mode 100644 index f75e2575b7b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf_precise/ErfPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erf_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfPrecisePostRequestBody} and sets the default values. - */ - public ErfPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErfPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("X", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the X property value. The X property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("X", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the X property value. The X property - * @param value Value to set for the X property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java deleted file mode 100644 index e3b11b66a1b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erf_precise/ErfPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erf_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java deleted file mode 100644 index 08aa3b6f69d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc/ErfCPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erfc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfCPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfCPostRequestBody} and sets the default values. - */ - public ErfCPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErfCPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfCPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfCPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java deleted file mode 100644 index 24a5b28daa3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc/ErfCRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erfc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java deleted file mode 100644 index 167010bc05d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erfc_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErfCPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErfCPrecisePostRequestBody} and sets the default values. - */ - public ErfCPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErfCPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErfCPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErfCPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("X", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the X property value. The X property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("X", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the X property value. The X property - * @param value Value to set for the X property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java deleted file mode 100644 index b106f49ab18..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/erfc_precise/ErfCPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.erfc_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java deleted file mode 100644 index 8434f58c1f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/error_type/ErrorTypePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.error_type; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ErrorTypePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ErrorTypePostRequestBody} and sets the default values. - */ - public ErrorTypePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ErrorTypePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ErrorTypePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ErrorTypePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the errorVal property value. The errorVal property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getErrorVal() { - return this.backingStore.get("errorVal"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("errorVal", (n) -> { this.setErrorVal(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("errorVal", this.getErrorVal()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the errorVal property value. The errorVal property - * @param value Value to set for the errorVal property. - */ - public void setErrorVal(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("errorVal", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java deleted file mode 100644 index 8e7882c9f6a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/error_type/ErrorTypeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.error_type; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java deleted file mode 100644 index 23fb48b1669..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/even/EvenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.even; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class EvenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link EvenPostRequestBody} and sets the default values. - */ - public EvenPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link EvenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static EvenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new EvenPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java deleted file mode 100644 index 6aac0874b5a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/even/EvenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.even; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java deleted file mode 100644 index 9475e5f3683..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exact/ExactPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.exact; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExactPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExactPostRequestBody} and sets the default values. - */ - public ExactPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ExactPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExactPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExactPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("text1", (n) -> { this.setText1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text2", (n) -> { this.setText2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text1 property value. The text1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText1() { - return this.backingStore.get("text1"); - } - /** - * Gets the text2 property value. The text2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText2() { - return this.backingStore.get("text2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text1", this.getText1()); - writer.writeObjectValue("text2", this.getText2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text1 property value. The text1 property - * @param value Value to set for the text1 property. - */ - public void setText1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text1", value); - } - /** - * Sets the text2 property value. The text2 property - * @param value Value to set for the text2 property. - */ - public void setText2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java deleted file mode 100644 index 7966a0bf01d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exact/ExactRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.exact; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java deleted file mode 100644 index f34781cdefc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exp/ExpPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.exp; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExpPostRequestBody} and sets the default values. - */ - public ExpPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ExpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExpPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java deleted file mode 100644 index c2f1213f20d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/exp/ExpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.exp; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java deleted file mode 100644 index 5dd37638646..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/expon_dist/ExponDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.expon_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ExponDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ExponDistPostRequestBody} and sets the default values. - */ - public ExponDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ExponDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ExponDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ExponDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lambda", (n) -> { this.setLambda(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lambda property value. The lambda property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLambda() { - return this.backingStore.get("lambda"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("lambda", this.getLambda()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the lambda property value. The lambda property - * @param value Value to set for the lambda property. - */ - public void setLambda(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lambda", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java deleted file mode 100644 index 0bf431b983b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/expon_dist/ExponDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.expon_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java deleted file mode 100644 index 2b834253aa0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist/FDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FDistPostRequestBody} and sets the default values. - */ - public FDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java deleted file mode 100644 index 4383fb56c78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist/FDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java deleted file mode 100644 index a0fe7e0cacd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_dist_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FDistRTPostRequestBody} and sets the default values. - */ - public FDistRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FDistRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java deleted file mode 100644 index 0518eb20056..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_dist_rt/FDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_dist_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java deleted file mode 100644 index 7eceab9e50e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv/FInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FInvPostRequestBody} and sets the default values. - */ - public FInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java deleted file mode 100644 index e121007622c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv/FInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java deleted file mode 100644 index 9fdfb8f178f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_inv_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FInvRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FInvRTPostRequestBody} and sets the default values. - */ - public FInvRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FInvRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FInvRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FInvRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom1 property value. The degFreedom1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom1() { - return this.backingStore.get("degFreedom1"); - } - /** - * Gets the degFreedom2 property value. The degFreedom2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom2() { - return this.backingStore.get("degFreedom2"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("degFreedom1", (n) -> { this.setDegFreedom1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom2", (n) -> { this.setDegFreedom2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom1", this.getDegFreedom1()); - writer.writeObjectValue("degFreedom2", this.getDegFreedom2()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom1 property value. The degFreedom1 property - * @param value Value to set for the degFreedom1 property. - */ - public void setDegFreedom1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom1", value); - } - /** - * Sets the degFreedom2 property value. The degFreedom2 property - * @param value Value to set for the degFreedom2 property. - */ - public void setDegFreedom2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom2", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java deleted file mode 100644 index af257b748c3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/f_inv_rt/FInvRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.f_inv_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java deleted file mode 100644 index b08bdb3886b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fact/FactPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fact; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FactPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FactPostRequestBody} and sets the default values. - */ - public FactPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FactPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FactPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FactPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java deleted file mode 100644 index d921a47af18..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fact/FactRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fact; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java deleted file mode 100644 index 5715ca084b3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/factdouble/FactDoublePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.factdouble; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FactDoublePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FactDoublePostRequestBody} and sets the default values. - */ - public FactDoublePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FactDoublePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FactDoublePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FactDoublePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java deleted file mode 100644 index bb3e25bf2f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/factdouble/FactDoubleRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.factdouble; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java deleted file mode 100644 index fba8104fdeb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/falseescaped/FalseRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.falseescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java deleted file mode 100644 index 0239eb6e831..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/find/FindPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.find; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FindPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FindPostRequestBody} and sets the default values. - */ - public FindPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FindPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FindPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FindPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("findText", (n) -> { this.setFindText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("withinText", (n) -> { this.setWithinText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the findText property value. The findText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFindText() { - return this.backingStore.get("findText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the withinText property value. The withinText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWithinText() { - return this.backingStore.get("withinText"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("findText", this.getFindText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("withinText", this.getWithinText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the findText property value. The findText property - * @param value Value to set for the findText property. - */ - public void setFindText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("findText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the withinText property value. The withinText property - * @param value Value to set for the withinText property. - */ - public void setWithinText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("withinText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java deleted file mode 100644 index d03371064de..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/find/FindRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.find; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java deleted file mode 100644 index 2a202a879ec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/findb/FindBPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.findb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FindBPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FindBPostRequestBody} and sets the default values. - */ - public FindBPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FindBPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FindBPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FindBPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("findText", (n) -> { this.setFindText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("withinText", (n) -> { this.setWithinText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the findText property value. The findText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFindText() { - return this.backingStore.get("findText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the withinText property value. The withinText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWithinText() { - return this.backingStore.get("withinText"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("findText", this.getFindText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("withinText", this.getWithinText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the findText property value. The findText property - * @param value Value to set for the findText property. - */ - public void setFindText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("findText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the withinText property value. The withinText property - * @param value Value to set for the withinText property. - */ - public void setWithinText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("withinText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java deleted file mode 100644 index fd88f2fcecb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/findb/FindBRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.findb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java deleted file mode 100644 index f64a850657b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisher/FisherPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fisher; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FisherPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FisherPostRequestBody} and sets the default values. - */ - public FisherPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FisherPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FisherPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FisherPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java deleted file mode 100644 index aea0dbfde40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisher/FisherRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fisher; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java deleted file mode 100644 index 3b7ef337f3d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisherinv/FisherInvPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fisherinv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FisherInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FisherInvPostRequestBody} and sets the default values. - */ - public FisherInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FisherInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FisherInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FisherInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("y", (n) -> { this.setY(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the y property value. The y property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getY() { - return this.backingStore.get("y"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("y", this.getY()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the y property value. The y property - * @param value Value to set for the y property. - */ - public void setY(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("y", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java deleted file mode 100644 index 46001bc8e37..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fisherinv/FisherInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fisherinv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java deleted file mode 100644 index 328523a430a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fixed/FixedPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fixed; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FixedPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FixedPostRequestBody} and sets the default values. - */ - public FixedPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FixedPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FixedPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FixedPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("noCommas", (n) -> { this.setNoCommas(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the noCommas property value. The noCommas property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNoCommas() { - return this.backingStore.get("noCommas"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimals", this.getDecimals()); - writer.writeObjectValue("noCommas", this.getNoCommas()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the noCommas property value. The noCommas property - * @param value Value to set for the noCommas property. - */ - public void setNoCommas(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("noCommas", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java deleted file mode 100644 index 49e4bb5936e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fixed/FixedRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fixed; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java deleted file mode 100644 index 2f4e7771376..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_math/FloorMathPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.floor_math; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FloorMathPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FloorMathPostRequestBody} and sets the default values. - */ - public FloorMathPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FloorMathPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FloorMathPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FloorMathPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mode", (n) -> { this.setMode(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mode property value. The mode property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMode() { - return this.backingStore.get("mode"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mode", this.getMode()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mode property value. The mode property - * @param value Value to set for the mode property. - */ - public void setMode(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mode", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java deleted file mode 100644 index db67022da6b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_math/FloorMathRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.floor_math; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java deleted file mode 100644 index 2586107e433..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_precise/FloorPrecisePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.floor_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FloorPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FloorPrecisePostRequestBody} and sets the default values. - */ - public FloorPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FloorPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FloorPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FloorPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java deleted file mode 100644 index b52f5663e87..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/floor_precise/FloorPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.floor_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java deleted file mode 100644 index ba733e97847..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fv/FvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FvPostRequestBody} and sets the default values. - */ - public FvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java deleted file mode 100644 index a6e2563744c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fv/FvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java deleted file mode 100644 index 00957dbb89a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fvschedule/FvschedulePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fvschedule; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class FvschedulePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link FvschedulePostRequestBody} and sets the default values. - */ - public FvschedulePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link FvschedulePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static FvschedulePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new FvschedulePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("principal", (n) -> { this.setPrincipal(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("schedule", (n) -> { this.setSchedule(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the principal property value. The principal property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPrincipal() { - return this.backingStore.get("principal"); - } - /** - * Gets the schedule property value. The schedule property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSchedule() { - return this.backingStore.get("schedule"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("principal", this.getPrincipal()); - writer.writeObjectValue("schedule", this.getSchedule()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the principal property value. The principal property - * @param value Value to set for the principal property. - */ - public void setPrincipal(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("principal", value); - } - /** - * Sets the schedule property value. The schedule property - * @param value Value to set for the schedule property. - */ - public void setSchedule(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("schedule", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java deleted file mode 100644 index f7033c80dd9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/fvschedule/FvscheduleRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.fvschedule; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java deleted file mode 100644 index cfc87486e8d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma/GammaPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaPostRequestBody} and sets the default values. - */ - public GammaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java deleted file mode 100644 index fedcbbab5d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma/GammaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java deleted file mode 100644 index 6a253094556..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaDistPostRequestBody} and sets the default values. - */ - public GammaDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java deleted file mode 100644 index add91566b71..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_dist/GammaDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java deleted file mode 100644 index f015e00239e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaInvPostRequestBody} and sets the default values. - */ - public GammaInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java deleted file mode 100644 index 008787c2246..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gamma_inv/GammaInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gamma_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java deleted file mode 100644 index 4622ca76964..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln/GammaLnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gammaln; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaLnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaLnPostRequestBody} and sets the default values. - */ - public GammaLnPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaLnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaLnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaLnPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java deleted file mode 100644 index 06910cf0aea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln/GammaLnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gammaln; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java deleted file mode 100644 index 03c16e633bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPrecisePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gammaln_precise; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GammaLnPrecisePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GammaLnPrecisePostRequestBody} and sets the default values. - */ - public GammaLnPrecisePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GammaLnPrecisePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GammaLnPrecisePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GammaLnPrecisePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java deleted file mode 100644 index 0914d9931da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gammaln_precise/GammaLnPreciseRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gammaln_precise; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java deleted file mode 100644 index 3132c3d6ea3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gauss/GaussPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gauss; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GaussPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GaussPostRequestBody} and sets the default values. - */ - public GaussPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GaussPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GaussPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GaussPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java deleted file mode 100644 index 92c309f0762..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gauss/GaussRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gauss; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java deleted file mode 100644 index 9278b776a13..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gcd/GcdPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gcd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GcdPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GcdPostRequestBody} and sets the default values. - */ - public GcdPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GcdPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GcdPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GcdPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java deleted file mode 100644 index 0100e9b857f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gcd/GcdRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gcd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java deleted file mode 100644 index 510e03b7716..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/geomean/GeoMeanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.geomean; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GeoMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GeoMeanPostRequestBody} and sets the default values. - */ - public GeoMeanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GeoMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GeoMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GeoMeanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java deleted file mode 100644 index 92fc53613fe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/geomean/GeoMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.geomean; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java deleted file mode 100644 index e24352ab59c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gestep/GeStepPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gestep; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GeStepPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link GeStepPostRequestBody} and sets the default values. - */ - public GeStepPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link GeStepPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static GeStepPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new GeStepPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("step", (n) -> { this.setStep(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the step property value. The step property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStep() { - return this.backingStore.get("step"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("step", this.getStep()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the step property value. The step property - * @param value Value to set for the step property. - */ - public void setStep(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("step", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java deleted file mode 100644 index 5da70637062..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/gestep/GeStepRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.gestep; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java deleted file mode 100644 index 5661ba54511..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/harmean/HarMeanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.harmean; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HarMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HarMeanPostRequestBody} and sets the default values. - */ - public HarMeanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HarMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HarMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HarMeanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java deleted file mode 100644 index 5a7a859828b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/harmean/HarMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.harmean; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java deleted file mode 100644 index b7c771b2b14..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2bin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2BinPostRequestBody} and sets the default values. - */ - public Hex2BinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Hex2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2BinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java deleted file mode 100644 index 8888eaa00bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2bin/Hex2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2bin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java deleted file mode 100644 index c5cf186a3d2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2dec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2DecPostRequestBody} and sets the default values. - */ - public Hex2DecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Hex2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2DecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java deleted file mode 100644 index 2a71bd45f7d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2dec/Hex2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2dec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java deleted file mode 100644 index 91e732fe14f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2oct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Hex2OctPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Hex2OctPostRequestBody} and sets the default values. - */ - public Hex2OctPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Hex2OctPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Hex2OctPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Hex2OctPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java deleted file mode 100644 index da75f7b7196..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hex2oct/Hex2OctRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hex2oct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java deleted file mode 100644 index 3608ddf8cf8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hlookup/HlookupPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hlookup; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HlookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HlookupPostRequestBody} and sets the default values. - */ - public HlookupPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HlookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HlookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HlookupPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rangeLookup", (n) -> { this.setRangeLookup(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rowIndexNum", (n) -> { this.setRowIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("tableArray", (n) -> { this.setTableArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the rangeLookup property value. The rangeLookup property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRangeLookup() { - return this.backingStore.get("rangeLookup"); - } - /** - * Gets the rowIndexNum property value. The rowIndexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRowIndexNum() { - return this.backingStore.get("rowIndexNum"); - } - /** - * Gets the tableArray property value. The tableArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTableArray() { - return this.backingStore.get("tableArray"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("rangeLookup", this.getRangeLookup()); - writer.writeObjectValue("rowIndexNum", this.getRowIndexNum()); - writer.writeObjectValue("tableArray", this.getTableArray()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the rangeLookup property value. The rangeLookup property - * @param value Value to set for the rangeLookup property. - */ - public void setRangeLookup(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rangeLookup", value); - } - /** - * Sets the rowIndexNum property value. The rowIndexNum property - * @param value Value to set for the rowIndexNum property. - */ - public void setRowIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rowIndexNum", value); - } - /** - * Sets the tableArray property value. The tableArray property - * @param value Value to set for the tableArray property. - */ - public void setTableArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("tableArray", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java deleted file mode 100644 index a2c6a4f27a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hlookup/HlookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hlookup; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java deleted file mode 100644 index 82488ca1d04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hour/HourPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hour; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HourPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HourPostRequestBody} and sets the default values. - */ - public HourPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HourPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HourPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HourPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java deleted file mode 100644 index 6edb8b62627..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hour/HourRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hour; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java deleted file mode 100644 index 45f1d4b1d81..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hyperlink; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HyperlinkPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HyperlinkPostRequestBody} and sets the default values. - */ - public HyperlinkPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HyperlinkPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HyperlinkPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HyperlinkPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("friendlyName", (n) -> { this.setFriendlyName(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("linkLocation", (n) -> { this.setLinkLocation(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the friendlyName property value. The friendlyName property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFriendlyName() { - return this.backingStore.get("friendlyName"); - } - /** - * Gets the linkLocation property value. The linkLocation property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLinkLocation() { - return this.backingStore.get("linkLocation"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("friendlyName", this.getFriendlyName()); - writer.writeObjectValue("linkLocation", this.getLinkLocation()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the friendlyName property value. The friendlyName property - * @param value Value to set for the friendlyName property. - */ - public void setFriendlyName(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("friendlyName", value); - } - /** - * Sets the linkLocation property value. The linkLocation property - * @param value Value to set for the linkLocation property. - */ - public void setLinkLocation(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("linkLocation", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java deleted file mode 100644 index a8a4f0f7dd8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hyperlink/HyperlinkRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hyperlink; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java deleted file mode 100644 index e2a69b88cf7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hypgeom_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class HypGeomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link HypGeomDistPostRequestBody} and sets the default values. - */ - public HypGeomDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link HypGeomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static HypGeomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new HypGeomDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberPop", (n) -> { this.setNumberPop(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberSample", (n) -> { this.setNumberSample(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("populationS", (n) -> { this.setPopulationS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sampleS", (n) -> { this.setSampleS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberPop property value. The numberPop property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberPop() { - return this.backingStore.get("numberPop"); - } - /** - * Gets the numberSample property value. The numberSample property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberSample() { - return this.backingStore.get("numberSample"); - } - /** - * Gets the populationS property value. The populationS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPopulationS() { - return this.backingStore.get("populationS"); - } - /** - * Gets the sampleS property value. The sampleS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSampleS() { - return this.backingStore.get("sampleS"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("numberPop", this.getNumberPop()); - writer.writeObjectValue("numberSample", this.getNumberSample()); - writer.writeObjectValue("populationS", this.getPopulationS()); - writer.writeObjectValue("sampleS", this.getSampleS()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberPop property value. The numberPop property - * @param value Value to set for the numberPop property. - */ - public void setNumberPop(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberPop", value); - } - /** - * Sets the numberSample property value. The numberSample property - * @param value Value to set for the numberSample property. - */ - public void setNumberSample(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberSample", value); - } - /** - * Sets the populationS property value. The populationS property - * @param value Value to set for the populationS property. - */ - public void setPopulationS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("populationS", value); - } - /** - * Sets the sampleS property value. The sampleS property - * @param value Value to set for the sampleS property. - */ - public void setSampleS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sampleS", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java deleted file mode 100644 index 912267ba5f1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/hypgeom_dist/HypGeomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.hypgeom_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java deleted file mode 100644 index f3f86ccbffe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ifescaped/IfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ifescaped; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IfPostRequestBody} and sets the default values. - */ - public IfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("logicalTest", (n) -> { this.setLogicalTest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("valueIfFalse", (n) -> { this.setValueIfFalse(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("valueIfTrue", (n) -> { this.setValueIfTrue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the logicalTest property value. The logicalTest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLogicalTest() { - return this.backingStore.get("logicalTest"); - } - /** - * Gets the valueIfFalse property value. The valueIfFalse property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValueIfFalse() { - return this.backingStore.get("valueIfFalse"); - } - /** - * Gets the valueIfTrue property value. The valueIfTrue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValueIfTrue() { - return this.backingStore.get("valueIfTrue"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("logicalTest", this.getLogicalTest()); - writer.writeObjectValue("valueIfFalse", this.getValueIfFalse()); - writer.writeObjectValue("valueIfTrue", this.getValueIfTrue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the logicalTest property value. The logicalTest property - * @param value Value to set for the logicalTest property. - */ - public void setLogicalTest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("logicalTest", value); - } - /** - * Sets the valueIfFalse property value. The valueIfFalse property - * @param value Value to set for the valueIfFalse property. - */ - public void setValueIfFalse(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("valueIfFalse", value); - } - /** - * Sets the valueIfTrue property value. The valueIfTrue property - * @param value Value to set for the valueIfTrue property. - */ - public void setValueIfTrue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("valueIfTrue", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java deleted file mode 100644 index 2505e4d9e35..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ifescaped/IfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ifescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java deleted file mode 100644 index d493d9f005e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imabs/ImAbsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imabs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImAbsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImAbsPostRequestBody} and sets the default values. - */ - public ImAbsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImAbsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImAbsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImAbsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java deleted file mode 100644 index b23b02482b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imabs/ImAbsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imabs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java deleted file mode 100644 index 17aed91d218..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imaginary/ImaginaryPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imaginary; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImaginaryPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImaginaryPostRequestBody} and sets the default values. - */ - public ImaginaryPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImaginaryPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImaginaryPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImaginaryPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java deleted file mode 100644 index d1c3df1a1cd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imaginary/ImaginaryRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imaginary; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java deleted file mode 100644 index 826918ae01a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imargument/ImArgumentPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imargument; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImArgumentPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImArgumentPostRequestBody} and sets the default values. - */ - public ImArgumentPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImArgumentPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImArgumentPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImArgumentPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java deleted file mode 100644 index 39a872cdfb9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imargument/ImArgumentRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imargument; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java deleted file mode 100644 index b6965d5f22b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imconjugate/ImConjugatePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imconjugate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImConjugatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImConjugatePostRequestBody} and sets the default values. - */ - public ImConjugatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImConjugatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImConjugatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImConjugatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java deleted file mode 100644 index f15a0ba2be4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imconjugate/ImConjugateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imconjugate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java deleted file mode 100644 index d206013adf3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcos/ImCosPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcos; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCosPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCosPostRequestBody} and sets the default values. - */ - public ImCosPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCosPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCosPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCosPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java deleted file mode 100644 index 727a3ccd36d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcos/ImCosRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcos; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java deleted file mode 100644 index 1deb583ec07..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcosh/ImCoshPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcosh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCoshPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCoshPostRequestBody} and sets the default values. - */ - public ImCoshPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCoshPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCoshPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCoshPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java deleted file mode 100644 index c4301d4dd8c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcosh/ImCoshRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcosh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java deleted file mode 100644 index 9d1d7188818..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcot/ImCotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcot; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCotPostRequestBody} and sets the default values. - */ - public ImCotPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCotPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java deleted file mode 100644 index b5ac43006a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcot/ImCotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcot; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java deleted file mode 100644 index 9741aa1f4db..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsc/ImCscPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcsc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCscPostRequestBody} and sets the default values. - */ - public ImCscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java deleted file mode 100644 index a05c359b8d0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsc/ImCscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcsc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java deleted file mode 100644 index 13341271511..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsch/ImCschPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcsch; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImCschPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImCschPostRequestBody} and sets the default values. - */ - public ImCschPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImCschPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImCschPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImCschPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java deleted file mode 100644 index bbf442d971b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imcsch/ImCschRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imcsch; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java deleted file mode 100644 index 7de7410f209..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imdiv/ImDivPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imdiv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImDivPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImDivPostRequestBody} and sets the default values. - */ - public ImDivPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImDivPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImDivPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImDivPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber1", (n) -> { this.setInumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("inumber2", (n) -> { this.setInumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber1 property value. The inumber1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber1() { - return this.backingStore.get("inumber1"); - } - /** - * Gets the inumber2 property value. The inumber2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber2() { - return this.backingStore.get("inumber2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber1", this.getInumber1()); - writer.writeObjectValue("inumber2", this.getInumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber1 property value. The inumber1 property - * @param value Value to set for the inumber1 property. - */ - public void setInumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber1", value); - } - /** - * Sets the inumber2 property value. The inumber2 property - * @param value Value to set for the inumber2 property. - */ - public void setInumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java deleted file mode 100644 index e3657a44a87..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imdiv/ImDivRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imdiv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java deleted file mode 100644 index df1896cfd32..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imexp/ImExpPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imexp; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImExpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImExpPostRequestBody} and sets the default values. - */ - public ImExpPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImExpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImExpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImExpPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java deleted file mode 100644 index fc00f86b745..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imexp/ImExpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imexp; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java deleted file mode 100644 index 6e354309ef0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imln/ImLnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imln; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLnPostRequestBody} and sets the default values. - */ - public ImLnPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImLnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLnPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java deleted file mode 100644 index 5af5a768f55..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imln/ImLnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imln; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java deleted file mode 100644 index 0b77d6254ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog10/ImLog10PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imlog10; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLog10PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLog10PostRequestBody} and sets the default values. - */ - public ImLog10PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImLog10PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLog10PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLog10PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java deleted file mode 100644 index 32d5ec71162..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog10/ImLog10RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imlog10; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java deleted file mode 100644 index d46954fb6ad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog2/ImLog2PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imlog2; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImLog2PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImLog2PostRequestBody} and sets the default values. - */ - public ImLog2PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImLog2PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImLog2PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImLog2PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java deleted file mode 100644 index 03f3fcea0ac..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imlog2/ImLog2RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imlog2; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java deleted file mode 100644 index ea9e6d10437..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/impower/ImPowerPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.impower; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImPowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImPowerPostRequestBody} and sets the default values. - */ - public ImPowerPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImPowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImPowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImPowerPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java deleted file mode 100644 index 9d38360fd01..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/impower/ImPowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.impower; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java deleted file mode 100644 index 9aa6f851f65..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/improduct/ImProductPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.improduct; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImProductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImProductPostRequestBody} and sets the default values. - */ - public ImProductPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImProductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImProductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImProductPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java deleted file mode 100644 index 7f365945aef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/improduct/ImProductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.improduct; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java deleted file mode 100644 index 40301dff5fa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imreal/ImRealPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imreal; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImRealPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImRealPostRequestBody} and sets the default values. - */ - public ImRealPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImRealPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImRealPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImRealPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java deleted file mode 100644 index 08d541ca64c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imreal/ImRealRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imreal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java deleted file mode 100644 index 50f0bc12edd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsec/ImSecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSecPostRequestBody} and sets the default values. - */ - public ImSecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java deleted file mode 100644 index 250ed112d14..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsec/ImSecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java deleted file mode 100644 index 768d22b3c6e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsech/ImSechPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsech; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSechPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSechPostRequestBody} and sets the default values. - */ - public ImSechPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSechPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSechPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSechPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java deleted file mode 100644 index 623c9fdbee4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsech/ImSechRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsech; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java deleted file mode 100644 index 235d1b4fcb8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsin/ImSinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSinPostRequestBody} and sets the default values. - */ - public ImSinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java deleted file mode 100644 index 5198af17fe7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsin/ImSinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java deleted file mode 100644 index 68d64f7719a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsinh/ImSinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsinh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSinhPostRequestBody} and sets the default values. - */ - public ImSinhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSinhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java deleted file mode 100644 index 25b12e673e7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsinh/ImSinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsinh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java deleted file mode 100644 index 9d85cd4a259..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsqrt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSqrtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSqrtPostRequestBody} and sets the default values. - */ - public ImSqrtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSqrtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSqrtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSqrtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java deleted file mode 100644 index aa1f0aabe8b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsqrt/ImSqrtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsqrt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java deleted file mode 100644 index c5a767a62a0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsub/ImSubPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsub; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSubPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSubPostRequestBody} and sets the default values. - */ - public ImSubPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSubPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSubPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSubPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("inumber1", (n) -> { this.setInumber1(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("inumber2", (n) -> { this.setInumber2(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber1 property value. The inumber1 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber1() { - return this.backingStore.get("inumber1"); - } - /** - * Gets the inumber2 property value. The inumber2 property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber2() { - return this.backingStore.get("inumber2"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber1", this.getInumber1()); - writer.writeObjectValue("inumber2", this.getInumber2()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber1 property value. The inumber1 property - * @param value Value to set for the inumber1 property. - */ - public void setInumber1(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber1", value); - } - /** - * Sets the inumber2 property value. The inumber2 property - * @param value Value to set for the inumber2 property. - */ - public void setInumber2(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber2", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java deleted file mode 100644 index c270282844f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsub/ImSubRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsub; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java deleted file mode 100644 index a4f3deea198..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsum/ImSumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImSumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImSumPostRequestBody} and sets the default values. - */ - public ImSumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImSumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImSumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImSumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java deleted file mode 100644 index 2a430dc5cf0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imsum/ImSumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imsum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java deleted file mode 100644 index caed80931ef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imtan/ImTanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imtan; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ImTanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ImTanPostRequestBody} and sets the default values. - */ - public ImTanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ImTanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ImTanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ImTanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("inumber", (n) -> { this.setInumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the inumber property value. The inumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInumber() { - return this.backingStore.get("inumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("inumber", this.getInumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the inumber property value. The inumber property - * @param value Value to set for the inumber property. - */ - public void setInumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("inumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java deleted file mode 100644 index 910a4b61534..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/imtan/ImTanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.imtan; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java deleted file mode 100644 index f2e52a44e94..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intescaped/IntPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.intescaped; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IntPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IntPostRequestBody} and sets the default values. - */ - public IntPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IntPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IntPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IntPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java deleted file mode 100644 index 13cf32adc84..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intescaped/IntRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.intescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java deleted file mode 100644 index db55af93054..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intrate/IntRatePostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.intrate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IntRatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IntRatePostRequestBody} and sets the default values. - */ - public IntRatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IntRatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IntRatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IntRatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("investment", (n) -> { this.setInvestment(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the investment property value. The investment property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInvestment() { - return this.backingStore.get("investment"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("investment", this.getInvestment()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the investment property value. The investment property - * @param value Value to set for the investment property. - */ - public void setInvestment(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("investment", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java deleted file mode 100644 index 5c8a5f6cd12..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/intrate/IntRateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.intrate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java deleted file mode 100644 index 37681747f0d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ipmt/IpmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ipmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IpmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IpmtPostRequestBody} and sets the default values. - */ - public IpmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IpmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IpmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IpmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java deleted file mode 100644 index 2deca13862e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ipmt/IpmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ipmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java deleted file mode 100644 index 6bc2eaf3caa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/irr/IrrPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.irr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IrrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IrrPostRequestBody} and sets the default values. - */ - public IrrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IrrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IrrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IrrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("guess", this.getGuess()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java deleted file mode 100644 index 1f4365ef8d6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/irr/IrrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.irr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java deleted file mode 100644 index d41c8c13cf8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserr/IsErrPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iserr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsErrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsErrPostRequestBody} and sets the default values. - */ - public IsErrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsErrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsErrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsErrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java deleted file mode 100644 index 6f884489d6a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserr/IsErrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iserr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java deleted file mode 100644 index 0fe0a7ae90f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserror/IsErrorPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iserror; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsErrorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsErrorPostRequestBody} and sets the default values. - */ - public IsErrorPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsErrorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsErrorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsErrorPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java deleted file mode 100644 index 5bc87f8304a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iserror/IsErrorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iserror; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java deleted file mode 100644 index 58346d0a72f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iseven/IsEvenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iseven; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsEvenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsEvenPostRequestBody} and sets the default values. - */ - public IsEvenPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsEvenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsEvenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsEvenPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java deleted file mode 100644 index d35664edbea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iseven/IsEvenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iseven; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java deleted file mode 100644 index aa4cb5bbbc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isformula/IsFormulaPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isformula; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsFormulaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsFormulaPostRequestBody} and sets the default values. - */ - public IsFormulaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsFormulaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsFormulaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsFormulaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java deleted file mode 100644 index 18d4c345da4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isformula/IsFormulaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isformula; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java deleted file mode 100644 index 829990ae511..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/islogical/IsLogicalPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.islogical; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsLogicalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsLogicalPostRequestBody} and sets the default values. - */ - public IsLogicalPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsLogicalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsLogicalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsLogicalPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java deleted file mode 100644 index 74668101c88..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/islogical/IsLogicalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.islogical; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java deleted file mode 100644 index ffd8ed7c92d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isna/IsNAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isna; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNAPostRequestBody} and sets the default values. - */ - public IsNAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsNAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java deleted file mode 100644 index 2e0627288cb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isna/IsNARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isna; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java deleted file mode 100644 index 6b90a49cb5d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnontext/IsNonTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isnontext; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNonTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNonTextPostRequestBody} and sets the default values. - */ - public IsNonTextPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsNonTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNonTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNonTextPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java deleted file mode 100644 index ce06664784f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnontext/IsNonTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isnontext; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java deleted file mode 100644 index 5c822fb52dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnumber/IsNumberPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isnumber; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsNumberPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsNumberPostRequestBody} and sets the default values. - */ - public IsNumberPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsNumberPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsNumberPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsNumberPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java deleted file mode 100644 index 68fea4c5b32..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isnumber/IsNumberRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isnumber; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java deleted file mode 100644 index a2d0c30eaca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iso_ceiling; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsoCeilingPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsoCeilingPostRequestBody} and sets the default values. - */ - public IsoCeilingPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsoCeilingPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsoCeilingPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsoCeilingPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java deleted file mode 100644 index 4886797757d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/iso_ceiling/IsoCeilingRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.iso_ceiling; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java deleted file mode 100644 index 80a9395d17e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isodd/IsOddPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isodd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsOddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsOddPostRequestBody} and sets the default values. - */ - public IsOddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsOddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsOddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsOddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java deleted file mode 100644 index 33b2c912610..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isodd/IsOddRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isodd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java deleted file mode 100644 index 2460a8e5fe5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isoweeknum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsoWeekNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsoWeekNumPostRequestBody} and sets the default values. - */ - public IsoWeekNumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsoWeekNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsoWeekNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsoWeekNumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the date property value. The date property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDate() { - return this.backingStore.get("date"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("date", (n) -> { this.setDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("date", this.getDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the date property value. The date property - * @param value Value to set for the date property. - */ - public void setDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("date", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java deleted file mode 100644 index 5a7a1bed4f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isoweeknum/IsoWeekNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isoweeknum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java deleted file mode 100644 index 865dfe1a435..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ispmt/IspmtPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ispmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IspmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IspmtPostRequestBody} and sets the default values. - */ - public IspmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IspmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IspmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IspmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java deleted file mode 100644 index 30316ec9e88..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ispmt/IspmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ispmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java deleted file mode 100644 index eafc2a731c3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isref/IsrefPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isref; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsrefPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsrefPostRequestBody} and sets the default values. - */ - public IsrefPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsrefPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsrefPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsrefPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java deleted file mode 100644 index ee09455a8a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/isref/IsrefRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.isref; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java deleted file mode 100644 index b7d45551a65..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/istext/IsTextPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.istext; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class IsTextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link IsTextPostRequestBody} and sets the default values. - */ - public IsTextPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link IsTextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static IsTextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new IsTextPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java deleted file mode 100644 index 8cb469fe806..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/istext/IsTextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.istext; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java deleted file mode 100644 index 1a81f5ba429..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/kurt/KurtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.kurt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class KurtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link KurtPostRequestBody} and sets the default values. - */ - public KurtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link KurtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static KurtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new KurtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java deleted file mode 100644 index 0ef0a688344..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/kurt/KurtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.kurt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java deleted file mode 100644 index 5d0576baa30..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/large/LargePostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.large; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LargePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LargePostRequestBody} and sets the default values. - */ - public LargePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LargePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LargePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LargePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java deleted file mode 100644 index a287628c9a7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/large/LargeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.large; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java deleted file mode 100644 index 686ab1b2f34..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lcm/LcmPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lcm; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LcmPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LcmPostRequestBody} and sets the default values. - */ - public LcmPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LcmPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LcmPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LcmPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java deleted file mode 100644 index f2ac4244b34..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lcm/LcmRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lcm; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java deleted file mode 100644 index fe0c2097f7d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/left/LeftPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.left; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LeftPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LeftPostRequestBody} and sets the default values. - */ - public LeftPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LeftPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LeftPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LeftPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java deleted file mode 100644 index 9d01eff9565..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/left/LeftRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.left; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java deleted file mode 100644 index 53a2b80f719..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/leftb/LeftbPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.leftb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LeftbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LeftbPostRequestBody} and sets the default values. - */ - public LeftbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LeftbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LeftbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LeftbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java deleted file mode 100644 index 6757ffdbf3b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/leftb/LeftbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.leftb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java deleted file mode 100644 index 2e11b51d07d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/len/LenPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.len; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LenPostRequestBody} and sets the default values. - */ - public LenPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LenPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java deleted file mode 100644 index 651791d0f47..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/len/LenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.len; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java deleted file mode 100644 index 3d4c0298bea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lenb/LenbPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lenb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LenbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LenbPostRequestBody} and sets the default values. - */ - public LenbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LenbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LenbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LenbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java deleted file mode 100644 index 667bdc30e64..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lenb/LenbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lenb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java deleted file mode 100644 index 789d070992d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ln/LnPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ln; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LnPostRequestBody} and sets the default values. - */ - public LnPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LnPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java deleted file mode 100644 index e79138a3552..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ln/LnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ln; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java deleted file mode 100644 index 456b283fa69..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log/LogPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.log; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogPostRequestBody} and sets the default values. - */ - public LogPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LogPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the base property value. The base property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBase() { - return this.backingStore.get("base"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("base", (n) -> { this.setBase(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("base", this.getBase()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the base property value. The base property - * @param value Value to set for the base property. - */ - public void setBase(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("base", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java deleted file mode 100644 index bd4290f0968..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log/LogRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.log; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java deleted file mode 100644 index 17734193d2e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log10/Log10PostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.log10; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Log10PostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Log10PostRequestBody} and sets the default values. - */ - public Log10PostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Log10PostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Log10PostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Log10PostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java deleted file mode 100644 index aaee2bc22a7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/log10/Log10RequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.log10; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java deleted file mode 100644 index b52febe836b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lognorm_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogNormDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogNormDistPostRequestBody} and sets the default values. - */ - public LogNormDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LogNormDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogNormDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogNormDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java deleted file mode 100644 index b1a39c42091..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_dist/LogNormDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lognorm_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java deleted file mode 100644 index 09c3ec783aa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lognorm_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LogNormInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LogNormInvPostRequestBody} and sets the default values. - */ - public LogNormInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LogNormInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LogNormInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LogNormInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java deleted file mode 100644 index 7700416e528..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lognorm_inv/LogNormInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lognorm_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java deleted file mode 100644 index b7b6bcb646b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lookup/LookupPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lookup; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LookupPostRequestBody} and sets the default values. - */ - public LookupPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LookupPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupVector", (n) -> { this.setLookupVector(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("resultVector", (n) -> { this.setResultVector(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the lookupVector property value. The lookupVector property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupVector() { - return this.backingStore.get("lookupVector"); - } - /** - * Gets the resultVector property value. The resultVector property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getResultVector() { - return this.backingStore.get("resultVector"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("lookupVector", this.getLookupVector()); - writer.writeObjectValue("resultVector", this.getResultVector()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the lookupVector property value. The lookupVector property - * @param value Value to set for the lookupVector property. - */ - public void setLookupVector(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupVector", value); - } - /** - * Sets the resultVector property value. The resultVector property - * @param value Value to set for the resultVector property. - */ - public void setResultVector(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("resultVector", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java deleted file mode 100644 index f25ec467333..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lookup/LookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lookup; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java deleted file mode 100644 index a6a3581fd4e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lower/LowerPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lower; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class LowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link LowerPostRequestBody} and sets the default values. - */ - public LowerPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link LowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static LowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new LowerPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java deleted file mode 100644 index 1e0593efee3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/lower/LowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.lower; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java deleted file mode 100644 index db86dd6ef20..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/match/MatchPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.match; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MatchPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MatchPostRequestBody} and sets the default values. - */ - public MatchPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MatchPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MatchPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MatchPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("lookupArray", (n) -> { this.setLookupArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("matchType", (n) -> { this.setMatchType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupArray property value. The lookupArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupArray() { - return this.backingStore.get("lookupArray"); - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the matchType property value. The matchType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMatchType() { - return this.backingStore.get("matchType"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("lookupArray", this.getLookupArray()); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("matchType", this.getMatchType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the lookupArray property value. The lookupArray property - * @param value Value to set for the lookupArray property. - */ - public void setLookupArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupArray", value); - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the matchType property value. The matchType property - * @param value Value to set for the matchType property. - */ - public void setMatchType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("matchType", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java deleted file mode 100644 index 5bdf659dbaa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/match/MatchRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.match; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java deleted file mode 100644 index 1915361b54a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/max/MaxPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.max; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MaxPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MaxPostRequestBody} and sets the default values. - */ - public MaxPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MaxPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MaxPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MaxPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java deleted file mode 100644 index 28cd6a9a4c5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/max/MaxRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.max; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java deleted file mode 100644 index 030cd41ce1d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/maxa/MaxAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.maxa; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MaxAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MaxAPostRequestBody} and sets the default values. - */ - public MaxAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MaxAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MaxAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MaxAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java deleted file mode 100644 index 8200e19f1dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/maxa/MaxARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.maxa; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java deleted file mode 100644 index b779d48cf3e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mduration/MdurationPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mduration; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MdurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MdurationPostRequestBody} and sets the default values. - */ - public MdurationPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MdurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MdurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MdurationPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the coupon property value. The coupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoupon() { - return this.backingStore.get("coupon"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("coupon", (n) -> { this.setCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("coupon", this.getCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the coupon property value. The coupon property - * @param value Value to set for the coupon property. - */ - public void setCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java deleted file mode 100644 index 99f3cea1f9d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mduration/MdurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mduration; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java deleted file mode 100644 index 9742e70328d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/median/MedianPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.median; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MedianPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MedianPostRequestBody} and sets the default values. - */ - public MedianPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MedianPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MedianPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MedianPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java deleted file mode 100644 index d1805e7458d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/median/MedianRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.median; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java deleted file mode 100644 index 4a7c1710ec5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mid/MidPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mid; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MidPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MidPostRequestBody} and sets the default values. - */ - public MidPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MidPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MidPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MidPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java deleted file mode 100644 index d91e30f5121..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mid/MidRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mid; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java deleted file mode 100644 index 29ad479a85a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/midb/MidbPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.midb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MidbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MidbPostRequestBody} and sets the default values. - */ - public MidbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MidbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MidbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MidbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java deleted file mode 100644 index 89dcdec3197..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/midb/MidbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.midb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java deleted file mode 100644 index 2750c984da3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/min/MinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.min; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinPostRequestBody} and sets the default values. - */ - public MinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java deleted file mode 100644 index 539976b0f79..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/min/MinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.min; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java deleted file mode 100644 index 8fced9adb59..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mina/MinAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mina; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinAPostRequestBody} and sets the default values. - */ - public MinAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MinAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java deleted file mode 100644 index 837cff97d2a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mina/MinARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mina; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java deleted file mode 100644 index b2da9f71f9e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/minute/MinutePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.minute; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MinutePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MinutePostRequestBody} and sets the default values. - */ - public MinutePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MinutePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MinutePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MinutePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java deleted file mode 100644 index e8f39b39a28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/minute/MinuteRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.minute; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java deleted file mode 100644 index f5df3280333..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mirr/MirrPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mirr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MirrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MirrPostRequestBody} and sets the default values. - */ - public MirrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MirrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MirrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MirrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("financeRate", (n) -> { this.setFinanceRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("reinvestRate", (n) -> { this.setReinvestRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the financeRate property value. The financeRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFinanceRate() { - return this.backingStore.get("financeRate"); - } - /** - * Gets the reinvestRate property value. The reinvestRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReinvestRate() { - return this.backingStore.get("reinvestRate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("financeRate", this.getFinanceRate()); - writer.writeObjectValue("reinvestRate", this.getReinvestRate()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the financeRate property value. The financeRate property - * @param value Value to set for the financeRate property. - */ - public void setFinanceRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("financeRate", value); - } - /** - * Sets the reinvestRate property value. The reinvestRate property - * @param value Value to set for the reinvestRate property. - */ - public void setReinvestRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reinvestRate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java deleted file mode 100644 index bdef9e62c18..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mirr/MirrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mirr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java deleted file mode 100644 index c01583cee49..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mod/ModPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mod; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ModPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ModPostRequestBody} and sets the default values. - */ - public ModPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ModPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ModPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ModPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the divisor property value. The divisor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDivisor() { - return this.backingStore.get("divisor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("divisor", (n) -> { this.setDivisor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("divisor", this.getDivisor()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the divisor property value. The divisor property - * @param value Value to set for the divisor property. - */ - public void setDivisor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("divisor", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java deleted file mode 100644 index 805228bcbf8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mod/ModRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mod; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java deleted file mode 100644 index c87814fbf0f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/month/MonthPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.month; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MonthPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MonthPostRequestBody} and sets the default values. - */ - public MonthPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MonthPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MonthPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MonthPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java deleted file mode 100644 index 97e6d950e76..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/month/MonthRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.month; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java deleted file mode 100644 index c411afbe99f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mround/MroundPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mround; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MroundPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MroundPostRequestBody} and sets the default values. - */ - public MroundPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MroundPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MroundPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MroundPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("multiple", (n) -> { this.setMultiple(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the multiple property value. The multiple property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMultiple() { - return this.backingStore.get("multiple"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("multiple", this.getMultiple()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the multiple property value. The multiple property - * @param value Value to set for the multiple property. - */ - public void setMultiple(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("multiple", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java deleted file mode 100644 index 7e78cd574ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/mround/MroundRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.mround; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java deleted file mode 100644 index 468023b575c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/multinomial/MultiNomialPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.multinomial; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class MultiNomialPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link MultiNomialPostRequestBody} and sets the default values. - */ - public MultiNomialPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link MultiNomialPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static MultiNomialPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new MultiNomialPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java deleted file mode 100644 index 32bdacd5411..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/multinomial/MultiNomialRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.multinomial; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java deleted file mode 100644 index ce713d0ec6d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/n/NPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.n; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NPostRequestBody} and sets the default values. - */ - public NPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java deleted file mode 100644 index 72520e7c8de..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/n/NRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.n; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java deleted file mode 100644 index e8da59e1654..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/na/NaRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.na; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java deleted file mode 100644 index de5f6bb93d6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.negbinom_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NegBinomDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NegBinomDistPostRequestBody} and sets the default values. - */ - public NegBinomDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NegBinomDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NegBinomDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NegBinomDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberF", (n) -> { this.setNumberF(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberS", (n) -> { this.setNumberS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probabilityS", (n) -> { this.setProbabilityS(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberF property value. The numberF property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberF() { - return this.backingStore.get("numberF"); - } - /** - * Gets the numberS property value. The numberS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberS() { - return this.backingStore.get("numberS"); - } - /** - * Gets the probabilityS property value. The probabilityS property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbabilityS() { - return this.backingStore.get("probabilityS"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("numberF", this.getNumberF()); - writer.writeObjectValue("numberS", this.getNumberS()); - writer.writeObjectValue("probabilityS", this.getProbabilityS()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the numberF property value. The numberF property - * @param value Value to set for the numberF property. - */ - public void setNumberF(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberF", value); - } - /** - * Sets the numberS property value. The numberS property - * @param value Value to set for the numberS property. - */ - public void setNumberS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberS", value); - } - /** - * Sets the probabilityS property value. The probabilityS property - * @param value Value to set for the probabilityS property. - */ - public void setProbabilityS(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probabilityS", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java deleted file mode 100644 index 03cb7421f2a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/negbinom_dist/NegBinomDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.negbinom_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java deleted file mode 100644 index f2c4d042e34..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.networkdays; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NetworkDaysPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NetworkDaysPostRequestBody} and sets the default values. - */ - public NetworkDaysPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NetworkDaysPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NetworkDaysPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NetworkDaysPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java deleted file mode 100644 index c5fac8d25ec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays/NetworkDaysRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.networkdays; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java deleted file mode 100644 index 0c420878610..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.networkdays_intl; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NetworkDaysIntlPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NetworkDaysIntlPostRequestBody} and sets the default values. - */ - public NetworkDaysIntlPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NetworkDaysIntlPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NetworkDaysIntlPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NetworkDaysIntlPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("weekend", (n) -> { this.setWeekend(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Gets the weekend property value. The weekend property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWeekend() { - return this.backingStore.get("weekend"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeObjectValue("weekend", this.getWeekend()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } - /** - * Sets the weekend property value. The weekend property - * @param value Value to set for the weekend property. - */ - public void setWeekend(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("weekend", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java deleted file mode 100644 index c4e56953674..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/networkdays_intl/NetworkDaysIntlRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.networkdays_intl; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java deleted file mode 100644 index b171a198eca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nominal/NominalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.nominal; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NominalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NominalPostRequestBody} and sets the default values. - */ - public NominalPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NominalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NominalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NominalPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the effectRate property value. The effectRate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEffectRate() { - return this.backingStore.get("effectRate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("effectRate", (n) -> { this.setEffectRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("npery", (n) -> { this.setNpery(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the npery property value. The npery property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNpery() { - return this.backingStore.get("npery"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("effectRate", this.getEffectRate()); - writer.writeObjectValue("npery", this.getNpery()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the effectRate property value. The effectRate property - * @param value Value to set for the effectRate property. - */ - public void setEffectRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("effectRate", value); - } - /** - * Sets the npery property value. The npery property - * @param value Value to set for the npery property. - */ - public void setNpery(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("npery", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java deleted file mode 100644 index bfc9f7c69ae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nominal/NominalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.nominal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java deleted file mode 100644 index 46ce682fb71..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_dist/NormDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormDistPostRequestBody} and sets the default values. - */ - public NormDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NormDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java deleted file mode 100644 index 98c0367ffb9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_dist/NormDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java deleted file mode 100644 index 4d0bc2a853c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_inv/NormInvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormInvPostRequestBody} and sets the default values. - */ - public NormInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NormInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java deleted file mode 100644 index 8a47372a914..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_inv/NormInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java deleted file mode 100644 index 1bb67ebc2d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_s_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormSDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormSDistPostRequestBody} and sets the default values. - */ - public NormSDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NormSDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormSDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormSDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("z", (n) -> { this.setZ(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the z property value. The z property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getZ() { - return this.backingStore.get("z"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("z", this.getZ()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the z property value. The z property - * @param value Value to set for the z property. - */ - public void setZ(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("z", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java deleted file mode 100644 index 47b5f962ab2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_dist/NormSDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_s_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java deleted file mode 100644 index 2498f870a10..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_s_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NormSInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NormSInvPostRequestBody} and sets the default values. - */ - public NormSInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NormSInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NormSInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NormSInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java deleted file mode 100644 index ad2db2a2073..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/norm_s_inv/NormSInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.norm_s_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java deleted file mode 100644 index 3b523aa0f45..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/not/NotPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.not; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NotPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NotPostRequestBody} and sets the default values. - */ - public NotPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NotPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NotPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NotPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("logical", (n) -> { this.setLogical(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the logical property value. The logical property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLogical() { - return this.backingStore.get("logical"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("logical", this.getLogical()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the logical property value. The logical property - * @param value Value to set for the logical property. - */ - public void setLogical(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("logical", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java deleted file mode 100644 index b48bfcba63d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/not/NotRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.not; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java deleted file mode 100644 index 3f992d6e208..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/now/NowRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.now; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java deleted file mode 100644 index 3001016bc16..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nper/NperPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.nper; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NperPostRequestBody} and sets the default values. - */ - public NperPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NperPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java deleted file mode 100644 index d1f6cdef26a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/nper/NperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.nper; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java deleted file mode 100644 index 1bfb56450a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/npv/NpvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.npv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NpvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NpvPostRequestBody} and sets the default values. - */ - public NpvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NpvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NpvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NpvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java deleted file mode 100644 index 821ce4d2a1b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/npv/NpvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.npv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java deleted file mode 100644 index 0116b91c184..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/numbervalue/NumberValuePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.numbervalue; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class NumberValuePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link NumberValuePostRequestBody} and sets the default values. - */ - public NumberValuePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link NumberValuePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static NumberValuePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new NumberValuePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimalSeparator property value. The decimalSeparator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimalSeparator() { - return this.backingStore.get("decimalSeparator"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("decimalSeparator", (n) -> { this.setDecimalSeparator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("groupSeparator", (n) -> { this.setGroupSeparator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the groupSeparator property value. The groupSeparator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGroupSeparator() { - return this.backingStore.get("groupSeparator"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimalSeparator", this.getDecimalSeparator()); - writer.writeObjectValue("groupSeparator", this.getGroupSeparator()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimalSeparator property value. The decimalSeparator property - * @param value Value to set for the decimalSeparator property. - */ - public void setDecimalSeparator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimalSeparator", value); - } - /** - * Sets the groupSeparator property value. The groupSeparator property - * @param value Value to set for the groupSeparator property. - */ - public void setGroupSeparator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("groupSeparator", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java deleted file mode 100644 index ecafe449ac6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/numbervalue/NumberValueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.numbervalue; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java deleted file mode 100644 index 0f886e192ab..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2bin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2BinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2BinPostRequestBody} and sets the default values. - */ - public Oct2BinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Oct2BinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2BinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2BinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java deleted file mode 100644 index 52821d3d462..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2bin/Oct2BinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2bin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java deleted file mode 100644 index baa9b396474..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2dec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2DecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2DecPostRequestBody} and sets the default values. - */ - public Oct2DecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Oct2DecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2DecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2DecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java deleted file mode 100644 index c242dccaefa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2dec/Oct2DecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2dec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java deleted file mode 100644 index b4c99514b80..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2hex; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class Oct2HexPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link Oct2HexPostRequestBody} and sets the default values. - */ - public Oct2HexPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link Oct2HexPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static Oct2HexPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new Oct2HexPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("places", (n) -> { this.setPlaces(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the places property value. The places property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPlaces() { - return this.backingStore.get("places"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("places", this.getPlaces()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the places property value. The places property - * @param value Value to set for the places property. - */ - public void setPlaces(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("places", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java deleted file mode 100644 index c4a3293539e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oct2hex/Oct2HexRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oct2hex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java deleted file mode 100644 index 3e444b1ded9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/odd/OddPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.odd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddPostRequestBody} and sets the default values. - */ - public OddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java deleted file mode 100644 index 562683ef6a3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/odd/OddRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.odd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java deleted file mode 100644 index db17c9dae26..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfprice/OddFPricePostRequestBody.java +++ /dev/null @@ -1,244 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddfprice; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddFPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddFPricePostRequestBody} and sets the default values. - */ - public OddFPricePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddFPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddFPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddFPricePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(9); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstCoupon", (n) -> { this.setFirstCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstCoupon property value. The firstCoupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstCoupon() { - return this.backingStore.get("firstCoupon"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("firstCoupon", this.getFirstCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the firstCoupon property value. The firstCoupon property - * @param value Value to set for the firstCoupon property. - */ - public void setFirstCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstCoupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java deleted file mode 100644 index 6f2b48b8076..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfprice/OddFPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddfprice; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java deleted file mode 100644 index e102560eaf3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldPostRequestBody.java +++ /dev/null @@ -1,244 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddfyield; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddFYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddFYieldPostRequestBody} and sets the default values. - */ - public OddFYieldPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddFYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddFYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddFYieldPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(9); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("firstCoupon", (n) -> { this.setFirstCoupon(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the firstCoupon property value. The firstCoupon property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFirstCoupon() { - return this.backingStore.get("firstCoupon"); - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("firstCoupon", this.getFirstCoupon()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the firstCoupon property value. The firstCoupon property - * @param value Value to set for the firstCoupon property. - */ - public void setFirstCoupon(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("firstCoupon", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java deleted file mode 100644 index 22c281ef86e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddfyield/OddFYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddfyield; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java deleted file mode 100644 index a5136dd0464..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlprice/OddLPricePostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddlprice; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddLPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddLPricePostRequestBody} and sets the default values. - */ - public OddLPricePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddLPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddLPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddLPricePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lastInterest", (n) -> { this.setLastInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the lastInterest property value. The lastInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLastInterest() { - return this.backingStore.get("lastInterest"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("lastInterest", this.getLastInterest()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the lastInterest property value. The lastInterest property - * @param value Value to set for the lastInterest property. - */ - public void setLastInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lastInterest", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java deleted file mode 100644 index 2d53a8e2594..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlprice/OddLPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddlprice; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java deleted file mode 100644 index 4a1d8edebd0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldPostRequestBody.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddlyield; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OddLYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OddLYieldPostRequestBody} and sets the default values. - */ - public OddLYieldPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OddLYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OddLYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OddLYieldPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(8); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lastInterest", (n) -> { this.setLastInterest(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the lastInterest property value. The lastInterest property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLastInterest() { - return this.backingStore.get("lastInterest"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("lastInterest", this.getLastInterest()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the lastInterest property value. The lastInterest property - * @param value Value to set for the lastInterest property. - */ - public void setLastInterest(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lastInterest", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java deleted file mode 100644 index b8b82beec07..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/oddlyield/OddLYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.oddlyield; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java deleted file mode 100644 index faf08360ff6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/or/OrPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.or; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class OrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link OrPostRequestBody} and sets the default values. - */ - public OrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link OrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static OrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new OrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java deleted file mode 100644 index 705ec1cb9b0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/or/OrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.or; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java deleted file mode 100644 index 55d03175f35..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pduration/PdurationPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pduration; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PdurationPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PdurationPostRequestBody} and sets the default values. - */ - public PdurationPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PdurationPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PdurationPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PdurationPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java deleted file mode 100644 index 7ca89915d10..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pduration/PdurationRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pduration; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java deleted file mode 100644 index 1650e3bf909..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentile_exc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentileExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentileExcPostRequestBody} and sets the default values. - */ - public PercentileExcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PercentileExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentileExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentileExcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java deleted file mode 100644 index 41cb4fe7107..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_exc/PercentileExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentile_exc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java deleted file mode 100644 index a057769e86a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentile_inc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentileIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentileIncPostRequestBody} and sets the default values. - */ - public PercentileIncPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PercentileIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentileIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentileIncPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java deleted file mode 100644 index 06f5745c5e4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentile_inc/PercentileIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentile_inc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java deleted file mode 100644 index 45919497010..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentrank_exc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentRankExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentRankExcPostRequestBody} and sets the default values. - */ - public PercentRankExcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PercentRankExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentRankExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentRankExcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java deleted file mode 100644 index 02ad1b44e3f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_exc/PercentRankExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentrank_exc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java deleted file mode 100644 index 425a89791e3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentrank_inc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PercentRankIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PercentRankIncPostRequestBody} and sets the default values. - */ - public PercentRankIncPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PercentRankIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PercentRankIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PercentRankIncPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("significance", (n) -> { this.setSignificance(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the significance property value. The significance property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSignificance() { - return this.backingStore.get("significance"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("significance", this.getSignificance()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the significance property value. The significance property - * @param value Value to set for the significance property. - */ - public void setSignificance(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("significance", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java deleted file mode 100644 index c952640db50..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/percentrank_inc/PercentRankIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.percentrank_inc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java deleted file mode 100644 index a513476c5e8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permut/PermutPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.permut; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermutPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PermutPostRequestBody} and sets the default values. - */ - public PermutPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PermutPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PermutPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PermutPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java deleted file mode 100644 index d66a18c2f3f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permut/PermutRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.permut; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java deleted file mode 100644 index 486f4081495..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permutationa/PermutationaPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.permutationa; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PermutationaPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PermutationaPostRequestBody} and sets the default values. - */ - public PermutationaPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PermutationaPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PermutationaPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PermutationaPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numberChosen", (n) -> { this.setNumberChosen(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numberChosen property value. The numberChosen property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberChosen() { - return this.backingStore.get("numberChosen"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numberChosen", this.getNumberChosen()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numberChosen property value. The numberChosen property - * @param value Value to set for the numberChosen property. - */ - public void setNumberChosen(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberChosen", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java deleted file mode 100644 index 939e577977d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/permutationa/PermutationaRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.permutationa; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java deleted file mode 100644 index d74633c2f2c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/phi/PhiPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.phi; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PhiPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PhiPostRequestBody} and sets the default values. - */ - public PhiPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PhiPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PhiPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PhiPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java deleted file mode 100644 index 0810a8471ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/phi/PhiRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.phi; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java deleted file mode 100644 index d90cf39bed9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pi/PiRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pi; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java deleted file mode 100644 index 0996abf7aef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pmt/PmtPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PmtPostRequestBody} and sets the default values. - */ - public PmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java deleted file mode 100644 index ca78e07cbfa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pmt/PmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java deleted file mode 100644 index 6dbdf80717b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.poisson_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PoissonDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PoissonDistPostRequestBody} and sets the default values. - */ - public PoissonDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PoissonDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PoissonDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PoissonDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java deleted file mode 100644 index d41e0cab511..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/poisson_dist/PoissonDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.poisson_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java deleted file mode 100644 index 1e2b723235f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/power/PowerPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.power; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PowerPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PowerPostRequestBody} and sets the default values. - */ - public PowerPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PowerPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PowerPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PowerPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("power", (n) -> { this.setPower(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the power property value. The power property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPower() { - return this.backingStore.get("power"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("power", this.getPower()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the power property value. The power property - * @param value Value to set for the power property. - */ - public void setPower(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("power", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java deleted file mode 100644 index 53cecdb675e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/power/PowerRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.power; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java deleted file mode 100644 index 9753cd05abb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ppmt/PpmtPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ppmt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PpmtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PpmtPostRequestBody} and sets the default values. - */ - public PpmtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PpmtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PpmtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PpmtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java deleted file mode 100644 index 563325b161e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/ppmt/PpmtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.ppmt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java deleted file mode 100644 index 31b7d48fe41..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/price/PricePostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.price; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PricePostRequestBody} and sets the default values. - */ - public PricePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PricePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java deleted file mode 100644 index 436c505b0e6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/price/PriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.price; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java deleted file mode 100644 index 4f6e26cc685..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pricedisc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PriceDiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PriceDiscPostRequestBody} and sets the default values. - */ - public PriceDiscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PriceDiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PriceDiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PriceDiscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java deleted file mode 100644 index f84cf9633ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricedisc/PriceDiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pricedisc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java deleted file mode 100644 index 0370569966b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricemat/PriceMatPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pricemat; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PriceMatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PriceMatPostRequestBody} and sets the default values. - */ - public PriceMatPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PriceMatPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PriceMatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PriceMatPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("yld", (n) -> { this.setYld(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Gets the yld property value. The yld property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getYld() { - return this.backingStore.get("yld"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeObjectValue("yld", this.getYld()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } - /** - * Sets the yld property value. The yld property - * @param value Value to set for the yld property. - */ - public void setYld(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("yld", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java deleted file mode 100644 index f86838c440f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pricemat/PriceMatRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pricemat; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java deleted file mode 100644 index 27e0c2d5271..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/product/ProductPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.product; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ProductPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ProductPostRequestBody} and sets the default values. - */ - public ProductPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ProductPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ProductPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ProductPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java deleted file mode 100644 index 743464c709c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/product/ProductRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.product; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java deleted file mode 100644 index c0bfae01d05..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/proper/ProperPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.proper; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ProperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ProperPostRequestBody} and sets the default values. - */ - public ProperPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ProperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ProperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ProperPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java deleted file mode 100644 index cfab01b7a48..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/proper/ProperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.proper; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java deleted file mode 100644 index b6ea4d481bf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pv/PvPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class PvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link PvPostRequestBody} and sets the default values. - */ - public PvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link PvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static PvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new PvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java deleted file mode 100644 index a25c6e4773c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/pv/PvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.pv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java deleted file mode 100644 index 12b4b98d78a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quartile_exc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuartileExcPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuartileExcPostRequestBody} and sets the default values. - */ - public QuartileExcPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link QuartileExcPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuartileExcPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuartileExcPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("quart", (n) -> { this.setQuart(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the quart property value. The quart property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getQuart() { - return this.backingStore.get("quart"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("quart", this.getQuart()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the quart property value. The quart property - * @param value Value to set for the quart property. - */ - public void setQuart(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("quart", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java deleted file mode 100644 index 25246beda9c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_exc/QuartileExcRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quartile_exc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java deleted file mode 100644 index ff10e98359b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quartile_inc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuartileIncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuartileIncPostRequestBody} and sets the default values. - */ - public QuartileIncPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link QuartileIncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuartileIncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuartileIncPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("quart", (n) -> { this.setQuart(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the quart property value. The quart property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getQuart() { - return this.backingStore.get("quart"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("quart", this.getQuart()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the quart property value. The quart property - * @param value Value to set for the quart property. - */ - public void setQuart(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("quart", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java deleted file mode 100644 index ca61628fc50..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quartile_inc/QuartileIncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quartile_inc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java deleted file mode 100644 index f0a5109a653..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quotient/QuotientPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quotient; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class QuotientPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link QuotientPostRequestBody} and sets the default values. - */ - public QuotientPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link QuotientPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static QuotientPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new QuotientPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the denominator property value. The denominator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDenominator() { - return this.backingStore.get("denominator"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("denominator", (n) -> { this.setDenominator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numerator", (n) -> { this.setNumerator(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numerator property value. The numerator property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumerator() { - return this.backingStore.get("numerator"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("denominator", this.getDenominator()); - writer.writeObjectValue("numerator", this.getNumerator()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the denominator property value. The denominator property - * @param value Value to set for the denominator property. - */ - public void setDenominator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("denominator", value); - } - /** - * Sets the numerator property value. The numerator property - * @param value Value to set for the numerator property. - */ - public void setNumerator(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numerator", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java deleted file mode 100644 index ca99d5eb2de..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/quotient/QuotientRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.quotient; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java deleted file mode 100644 index 1016b46e910..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/radians/RadiansPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.radians; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RadiansPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RadiansPostRequestBody} and sets the default values. - */ - public RadiansPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RadiansPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RadiansPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RadiansPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the angle property value. The angle property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAngle() { - return this.backingStore.get("angle"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("angle", (n) -> { this.setAngle(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("angle", this.getAngle()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the angle property value. The angle property - * @param value Value to set for the angle property. - */ - public void setAngle(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("angle", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java deleted file mode 100644 index 2717d05fad0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/radians/RadiansRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.radians; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java deleted file mode 100644 index a9df85c4d30..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rand/RandRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rand; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java deleted file mode 100644 index 6285f01dc95..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/randbetween/RandBetweenPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.randbetween; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RandBetweenPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RandBetweenPostRequestBody} and sets the default values. - */ - public RandBetweenPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RandBetweenPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RandBetweenPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RandBetweenPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the bottom property value. The bottom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBottom() { - return this.backingStore.get("bottom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("bottom", (n) -> { this.setBottom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("top", (n) -> { this.setTop(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the top property value. The top property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTop() { - return this.backingStore.get("top"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("bottom", this.getBottom()); - writer.writeObjectValue("top", this.getTop()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the bottom property value. The bottom property - * @param value Value to set for the bottom property. - */ - public void setBottom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("bottom", value); - } - /** - * Sets the top property value. The top property - * @param value Value to set for the top property. - */ - public void setTop(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("top", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java deleted file mode 100644 index 78b58726971..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/randbetween/RandBetweenRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.randbetween; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java deleted file mode 100644 index eabb3c84551..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_avg/RankAvgPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rank_avg; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RankAvgPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RankAvgPostRequestBody} and sets the default values. - */ - public RankAvgPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RankAvgPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RankAvgPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RankAvgPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("order", (n) -> { this.setOrder(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("ref", (n) -> { this.setRef(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the order property value. The order property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOrder() { - return this.backingStore.get("order"); - } - /** - * Gets the ref property value. The ref property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRef() { - return this.backingStore.get("ref"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("order", this.getOrder()); - writer.writeObjectValue("ref", this.getRef()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the order property value. The order property - * @param value Value to set for the order property. - */ - public void setOrder(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("order", value); - } - /** - * Sets the ref property value. The ref property - * @param value Value to set for the ref property. - */ - public void setRef(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("ref", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java deleted file mode 100644 index 4bcfe8c8240..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_avg/RankAvgRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rank_avg; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java deleted file mode 100644 index 7c3ba363fbc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_eq/RankEqPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rank_eq; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RankEqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RankEqPostRequestBody} and sets the default values. - */ - public RankEqPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RankEqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RankEqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RankEqPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("order", (n) -> { this.setOrder(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("ref", (n) -> { this.setRef(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the order property value. The order property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOrder() { - return this.backingStore.get("order"); - } - /** - * Gets the ref property value. The ref property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRef() { - return this.backingStore.get("ref"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("order", this.getOrder()); - writer.writeObjectValue("ref", this.getRef()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the order property value. The order property - * @param value Value to set for the order property. - */ - public void setOrder(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("order", value); - } - /** - * Sets the ref property value. The ref property - * @param value Value to set for the ref property. - */ - public void setRef(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("ref", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java deleted file mode 100644 index fc18daea5f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rank_eq/RankEqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rank_eq; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java deleted file mode 100644 index 2c4669a88d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rate/RatePostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rate; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RatePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RatePostRequestBody} and sets the default values. - */ - public RatePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RatePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RatePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RatePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pmt", (n) -> { this.setPmt(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pmt property value. The pmt property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPmt() { - return this.backingStore.get("pmt"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Gets the type property value. The type property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("guess", this.getGuess()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pmt", this.getPmt()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeObjectValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pmt property value. The pmt property - * @param value Value to set for the pmt property. - */ - public void setPmt(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pmt", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java deleted file mode 100644 index d44f2c1033c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rate/RateRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java deleted file mode 100644 index 22b9f865080..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/received/ReceivedPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.received; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReceivedPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReceivedPostRequestBody} and sets the default values. - */ - public ReceivedPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ReceivedPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReceivedPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReceivedPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("investment", (n) -> { this.setInvestment(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the investment property value. The investment property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInvestment() { - return this.backingStore.get("investment"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("investment", this.getInvestment()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the investment property value. The investment property - * @param value Value to set for the investment property. - */ - public void setInvestment(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("investment", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java deleted file mode 100644 index a73ea962102..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/received/ReceivedRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.received; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java deleted file mode 100644 index cd13a8190dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replace/ReplacePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.replace; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReplacePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReplacePostRequestBody} and sets the default values. - */ - public ReplacePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ReplacePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReplacePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReplacePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("newText", this.getNewText()); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java deleted file mode 100644 index 312e265dde6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replace/ReplaceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.replace; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java deleted file mode 100644 index 9d031852bf0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replaceb/ReplaceBPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.replaceb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReplaceBPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReplaceBPostRequestBody} and sets the default values. - */ - public ReplaceBPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ReplaceBPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReplaceBPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReplaceBPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startNum", (n) -> { this.setStartNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the startNum property value. The startNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartNum() { - return this.backingStore.get("startNum"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("newText", this.getNewText()); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("startNum", this.getStartNum()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the startNum property value. The startNum property - * @param value Value to set for the startNum property. - */ - public void setStartNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startNum", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java deleted file mode 100644 index 1050ee43cd3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/replaceb/ReplaceBRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.replaceb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java deleted file mode 100644 index 06fdaf36e33..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rept/ReptPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rept; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ReptPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ReptPostRequestBody} and sets the default values. - */ - public ReptPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ReptPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ReptPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ReptPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numberTimes", (n) -> { this.setNumberTimes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numberTimes property value. The numberTimes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumberTimes() { - return this.backingStore.get("numberTimes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numberTimes", this.getNumberTimes()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numberTimes property value. The numberTimes property - * @param value Value to set for the numberTimes property. - */ - public void setNumberTimes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numberTimes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java deleted file mode 100644 index 11a97b77131..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rept/ReptRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rept; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java deleted file mode 100644 index 2035b94be42..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/right/RightPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.right; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RightPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RightPostRequestBody} and sets the default values. - */ - public RightPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RightPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RightPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RightPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numChars", (n) -> { this.setNumChars(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numChars property value. The numChars property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumChars() { - return this.backingStore.get("numChars"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numChars", this.getNumChars()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numChars property value. The numChars property - * @param value Value to set for the numChars property. - */ - public void setNumChars(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numChars", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java deleted file mode 100644 index 9fd548c1424..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/right/RightRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.right; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java deleted file mode 100644 index 17a041cb7b6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rightb/RightbPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rightb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RightbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RightbPostRequestBody} and sets the default values. - */ - public RightbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RightbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RightbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RightbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("numBytes", (n) -> { this.setNumBytes(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the numBytes property value. The numBytes property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumBytes() { - return this.backingStore.get("numBytes"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("numBytes", this.getNumBytes()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the numBytes property value. The numBytes property - * @param value Value to set for the numBytes property. - */ - public void setNumBytes(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numBytes", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java deleted file mode 100644 index 078e78894bf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rightb/RightbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rightb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java deleted file mode 100644 index 1f639d97811..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roman/RomanPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.roman; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RomanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RomanPostRequestBody} and sets the default values. - */ - public RomanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RomanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RomanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RomanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("form", (n) -> { this.setForm(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the form property value. The form property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getForm() { - return this.backingStore.get("form"); - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("form", this.getForm()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the form property value. The form property - * @param value Value to set for the form property. - */ - public void setForm(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("form", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java deleted file mode 100644 index 5391ad597f5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roman/RomanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.roman; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java deleted file mode 100644 index e4dfa116d94..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/round/RoundPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.round; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundPostRequestBody} and sets the default values. - */ - public RoundPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RoundPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java deleted file mode 100644 index 7f3587076e9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/round/RoundRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.round; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java deleted file mode 100644 index c92fabef88c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rounddown/RoundDownPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rounddown; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundDownPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundDownPostRequestBody} and sets the default values. - */ - public RoundDownPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RoundDownPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundDownPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundDownPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java deleted file mode 100644 index 2d8838db785..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rounddown/RoundDownRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rounddown; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java deleted file mode 100644 index 4009ca4bef8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roundup/RoundUpPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.roundup; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RoundUpPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RoundUpPostRequestBody} and sets the default values. - */ - public RoundUpPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RoundUpPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RoundUpPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RoundUpPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java deleted file mode 100644 index 547c45ce1fb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/roundup/RoundUpRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.roundup; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java deleted file mode 100644 index 39c2ab0e7d3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rows/RowsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rows; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RowsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RowsPostRequestBody} and sets the default values. - */ - public RowsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RowsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RowsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RowsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java deleted file mode 100644 index 8749c304f6a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java deleted file mode 100644 index bc64abcb0b2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rri/RriPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rri; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RriPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RriPostRequestBody} and sets the default values. - */ - public RriPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RriPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RriPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RriPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("fv", (n) -> { this.setFv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("nper", (n) -> { this.setNper(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pv", (n) -> { this.setPv(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the fv property value. The fv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFv() { - return this.backingStore.get("fv"); - } - /** - * Gets the nper property value. The nper property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNper() { - return this.backingStore.get("nper"); - } - /** - * Gets the pv property value. The pv property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPv() { - return this.backingStore.get("pv"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("fv", this.getFv()); - writer.writeObjectValue("nper", this.getNper()); - writer.writeObjectValue("pv", this.getPv()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the fv property value. The fv property - * @param value Value to set for the fv property. - */ - public void setFv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("fv", value); - } - /** - * Sets the nper property value. The nper property - * @param value Value to set for the nper property. - */ - public void setNper(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("nper", value); - } - /** - * Sets the pv property value. The pv property - * @param value Value to set for the pv property. - */ - public void setPv(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pv", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java deleted file mode 100644 index 322ba6352df..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/rri/RriRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.rri; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java deleted file mode 100644 index 08c547c1bf4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sec/SecPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sec; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SecPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SecPostRequestBody} and sets the default values. - */ - public SecPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SecPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SecPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SecPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java deleted file mode 100644 index 15f1733c197..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sec/SecRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sec; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java deleted file mode 100644 index a157a7455d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sech/SechPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sech; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SechPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SechPostRequestBody} and sets the default values. - */ - public SechPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SechPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SechPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SechPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java deleted file mode 100644 index 7897861d238..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sech/SechRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sech; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java deleted file mode 100644 index 7fc9c91b8f4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/second/SecondPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.second; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SecondPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SecondPostRequestBody} and sets the default values. - */ - public SecondPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SecondPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SecondPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SecondPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java deleted file mode 100644 index 7afe5c79710..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/second/SecondRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.second; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java deleted file mode 100644 index 850ac9c6fc8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/seriessum/SeriesSumPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.seriessum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SeriesSumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SeriesSumPostRequestBody} and sets the default values. - */ - public SeriesSumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SeriesSumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SeriesSumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SeriesSumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the coefficients property value. The coefficients property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCoefficients() { - return this.backingStore.get("coefficients"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("coefficients", (n) -> { this.setCoefficients(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("m", (n) -> { this.setM(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("n", (n) -> { this.setN(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the m property value. The m property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getM() { - return this.backingStore.get("m"); - } - /** - * Gets the n property value. The n property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getN() { - return this.backingStore.get("n"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("coefficients", this.getCoefficients()); - writer.writeObjectValue("m", this.getM()); - writer.writeObjectValue("n", this.getN()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the coefficients property value. The coefficients property - * @param value Value to set for the coefficients property. - */ - public void setCoefficients(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("coefficients", value); - } - /** - * Sets the m property value. The m property - * @param value Value to set for the m property. - */ - public void setM(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("m", value); - } - /** - * Sets the n property value. The n property - * @param value Value to set for the n property. - */ - public void setN(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("n", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java deleted file mode 100644 index cc2060908d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/seriessum/SeriesSumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.seriessum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java deleted file mode 100644 index 22348cc3502..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheet/SheetPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sheet; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SheetPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SheetPostRequestBody} and sets the default values. - */ - public SheetPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SheetPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SheetPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SheetPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java deleted file mode 100644 index 5a997d7cc43..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheet/SheetRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java deleted file mode 100644 index 101e951e853..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheets/SheetsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sheets; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SheetsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SheetsPostRequestBody} and sets the default values. - */ - public SheetsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SheetsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SheetsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SheetsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java deleted file mode 100644 index 4f020cfd5b3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sheets/SheetsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sheets; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java deleted file mode 100644 index 4b489313485..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sign/SignPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sign; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SignPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SignPostRequestBody} and sets the default values. - */ - public SignPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SignPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SignPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SignPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java deleted file mode 100644 index fc77a9033ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sign/SignRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sign; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java deleted file mode 100644 index b8d221580c3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sin/SinPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sin; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SinPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SinPostRequestBody} and sets the default values. - */ - public SinPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SinPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SinPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SinPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java deleted file mode 100644 index 755af9b3d59..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sin/SinRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sin; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java deleted file mode 100644 index 23524274641..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sinh/SinhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sinh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SinhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SinhPostRequestBody} and sets the default values. - */ - public SinhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SinhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SinhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SinhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java deleted file mode 100644 index bf781e79ba9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sinh/SinhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sinh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java deleted file mode 100644 index 5dccc330851..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew/SkewPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.skew; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SkewPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SkewPostRequestBody} and sets the default values. - */ - public SkewPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SkewPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SkewPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SkewPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java deleted file mode 100644 index 9bd506d6568..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew/SkewRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.skew; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java deleted file mode 100644 index 6369545022b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew_p/SkewPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.skew_p; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SkewPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SkewPPostRequestBody} and sets the default values. - */ - public SkewPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SkewPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SkewPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SkewPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java deleted file mode 100644 index df149a27ddd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/skew_p/SkewPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.skew_p; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java deleted file mode 100644 index 84a24222955..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sln/SlnPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sln; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SlnPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SlnPostRequestBody} and sets the default values. - */ - public SlnPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SlnPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SlnPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SlnPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java deleted file mode 100644 index a5507894a28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sln/SlnRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sln; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java deleted file mode 100644 index deb73397070..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/small/SmallPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.small; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SmallPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SmallPostRequestBody} and sets the default values. - */ - public SmallPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SmallPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SmallPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SmallPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("k", (n) -> { this.setK(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the k property value. The k property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getK() { - return this.backingStore.get("k"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("k", this.getK()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the k property value. The k property - * @param value Value to set for the k property. - */ - public void setK(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("k", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java deleted file mode 100644 index 2c2f224e78f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/small/SmallRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.small; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java deleted file mode 100644 index 10ccebbe7fd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrt/SqrtPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sqrt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SqrtPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SqrtPostRequestBody} and sets the default values. - */ - public SqrtPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SqrtPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SqrtPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SqrtPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java deleted file mode 100644 index de6ba4d271c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrt/SqrtRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sqrt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java deleted file mode 100644 index 65f2ec98ef2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sqrtpi; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SqrtPiPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SqrtPiPostRequestBody} and sets the default values. - */ - public SqrtPiPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SqrtPiPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SqrtPiPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SqrtPiPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java deleted file mode 100644 index 2a1a277af5e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sqrtpi/SqrtPiRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sqrtpi; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java deleted file mode 100644 index df7587ef49a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/standardize/StandardizePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.standardize; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StandardizePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StandardizePostRequestBody} and sets the default values. - */ - public StandardizePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StandardizePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StandardizePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StandardizePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("mean", (n) -> { this.setMean(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("standardDev", (n) -> { this.setStandardDev(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the mean property value. The mean property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMean() { - return this.backingStore.get("mean"); - } - /** - * Gets the standardDev property value. The standardDev property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStandardDev() { - return this.backingStore.get("standardDev"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("mean", this.getMean()); - writer.writeObjectValue("standardDev", this.getStandardDev()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the mean property value. The mean property - * @param value Value to set for the mean property. - */ - public void setMean(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("mean", value); - } - /** - * Sets the standardDev property value. The standardDev property - * @param value Value to set for the standardDev property. - */ - public void setStandardDev(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("standardDev", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java deleted file mode 100644 index 3bfa2c31691..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/standardize/StandardizeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.standardize; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java deleted file mode 100644 index c2389718150..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_p/StDevPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdev_p; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevPPostRequestBody} and sets the default values. - */ - public StDevPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StDevPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java deleted file mode 100644 index 477a6b990cb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_p/StDevPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdev_p; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java deleted file mode 100644 index f84843fb6f5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_s/StDevSPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdev_s; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevSPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevSPostRequestBody} and sets the default values. - */ - public StDevSPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StDevSPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevSPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevSPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java deleted file mode 100644 index 679ccd7503c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdev_s/StDevSRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdev_s; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java deleted file mode 100644 index 35a44907b7c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdeva/StDevAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdeva; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevAPostRequestBody} and sets the default values. - */ - public StDevAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StDevAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java deleted file mode 100644 index 9a97355c193..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdeva/StDevARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdeva; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java deleted file mode 100644 index ed3e874c019..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdevpa/StDevPAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdevpa; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class StDevPAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link StDevPAPostRequestBody} and sets the default values. - */ - public StDevPAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link StDevPAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static StDevPAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new StDevPAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java deleted file mode 100644 index c0088a07077..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/stdevpa/StDevPARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.stdevpa; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java deleted file mode 100644 index aaf50b77e8c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/substitute/SubstitutePostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.substitute; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubstitutePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SubstitutePostRequestBody} and sets the default values. - */ - public SubstitutePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SubstitutePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SubstitutePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SubstitutePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("instanceNum", (n) -> { this.setInstanceNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("newText", (n) -> { this.setNewText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("oldText", (n) -> { this.setOldText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the instanceNum property value. The instanceNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getInstanceNum() { - return this.backingStore.get("instanceNum"); - } - /** - * Gets the newText property value. The newText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNewText() { - return this.backingStore.get("newText"); - } - /** - * Gets the oldText property value. The oldText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getOldText() { - return this.backingStore.get("oldText"); - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("instanceNum", this.getInstanceNum()); - writer.writeObjectValue("newText", this.getNewText()); - writer.writeObjectValue("oldText", this.getOldText()); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the instanceNum property value. The instanceNum property - * @param value Value to set for the instanceNum property. - */ - public void setInstanceNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("instanceNum", value); - } - /** - * Sets the newText property value. The newText property - * @param value Value to set for the newText property. - */ - public void setNewText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("newText", value); - } - /** - * Sets the oldText property value. The oldText property - * @param value Value to set for the oldText property. - */ - public void setOldText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("oldText", value); - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java deleted file mode 100644 index 0f167168666..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/substitute/SubstituteRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.substitute; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java deleted file mode 100644 index 25cc4879b21..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/subtotal/SubtotalPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.subtotal; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SubtotalPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SubtotalPostRequestBody} and sets the default values. - */ - public SubtotalPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SubtotalPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SubtotalPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SubtotalPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("functionNum", (n) -> { this.setFunctionNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the functionNum property value. The functionNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFunctionNum() { - return this.backingStore.get("functionNum"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("functionNum", this.getFunctionNum()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the functionNum property value. The functionNum property - * @param value Value to set for the functionNum property. - */ - public void setFunctionNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("functionNum", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java deleted file mode 100644 index 934d7306e97..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/subtotal/SubtotalRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.subtotal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java deleted file mode 100644 index ae72829560c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sum/SumPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumPostRequestBody} and sets the default values. - */ - public SumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java deleted file mode 100644 index bb7b8bee201..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sum/SumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java deleted file mode 100644 index 1a3fd877980..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumif/SumIfPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumif; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumIfPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumIfPostRequestBody} and sets the default values. - */ - public SumIfPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SumIfPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumIfPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumIfPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the criteria property value. The criteria property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCriteria() { - return this.backingStore.get("criteria"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("criteria", (n) -> { this.setCriteria(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("range", (n) -> { this.setRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sumRange", (n) -> { this.setSumRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the range property value. The range property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRange() { - return this.backingStore.get("range"); - } - /** - * Gets the sumRange property value. The sumRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSumRange() { - return this.backingStore.get("sumRange"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("criteria", this.getCriteria()); - writer.writeObjectValue("range", this.getRange()); - writer.writeObjectValue("sumRange", this.getSumRange()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the criteria property value. The criteria property - * @param value Value to set for the criteria property. - */ - public void setCriteria(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("criteria", value); - } - /** - * Sets the range property value. The range property - * @param value Value to set for the range property. - */ - public void setRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("range", value); - } - /** - * Sets the sumRange property value. The sumRange property - * @param value Value to set for the sumRange property. - */ - public void setSumRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sumRange", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java deleted file mode 100644 index d1065b841d7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumif/SumIfRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumif; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java deleted file mode 100644 index f4794907322..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumifs/SumIfsPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumifs; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumIfsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumIfsPostRequestBody} and sets the default values. - */ - public SumIfsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SumIfsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumIfsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumIfsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("sumRange", (n) -> { this.setSumRange(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the sumRange property value. The sumRange property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSumRange() { - return this.backingStore.get("sumRange"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("sumRange", this.getSumRange()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the sumRange property value. The sumRange property - * @param value Value to set for the sumRange property. - */ - public void setSumRange(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sumRange", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java deleted file mode 100644 index dbfb33ed693..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumifs/SumIfsRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumifs; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java deleted file mode 100644 index d4ea2561430..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumsq/SumSqPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumsq; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SumSqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SumSqPostRequestBody} and sets the default values. - */ - public SumSqPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SumSqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SumSqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SumSqPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java deleted file mode 100644 index 442627167f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/sumsq/SumSqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.sumsq; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java deleted file mode 100644 index ba77f5f8d2f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/syd/SydPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.syd; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SydPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SydPostRequestBody} and sets the default values. - */ - public SydPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SydPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SydPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SydPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("per", (n) -> { this.setPer(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the per property value. The per property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPer() { - return this.backingStore.get("per"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("per", this.getPer()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the per property value. The per property - * @param value Value to set for the per property. - */ - public void setPer(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("per", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java deleted file mode 100644 index 8321bb9d441..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/syd/SydRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.syd; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java deleted file mode 100644 index 15dedaa127c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t/TPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TPostRequestBody} and sets the default values. - */ - public TPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java deleted file mode 100644 index b8f19cba583..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t/TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java deleted file mode 100644 index a755132f97a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist/TDistPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDistPostRequestBody} and sets the default values. - */ - public TDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java deleted file mode 100644 index bc7619c07e3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist/TDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java deleted file mode 100644 index 97f5a721894..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist_2t; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDist2TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDist2TPostRequestBody} and sets the default values. - */ - public TDist2TPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TDist2TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDist2TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDist2TPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java deleted file mode 100644 index 0726f4bb08d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_2t/TDist2TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist_2t; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java deleted file mode 100644 index 8af8df572b3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist_rt; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TDistRTPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TDistRTPostRequestBody} and sets the default values. - */ - public TDistRTPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TDistRTPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TDistRTPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TDistRTPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java deleted file mode 100644 index 65018c3806f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_dist_rt/TDistRTRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_dist_rt; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java deleted file mode 100644 index 8c8b922f714..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv/TInvPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_inv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TInvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TInvPostRequestBody} and sets the default values. - */ - public TInvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TInvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TInvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TInvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java deleted file mode 100644 index 98bc91a8cab..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv/TInvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_inv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java deleted file mode 100644 index 9373f4335e7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_inv_2t; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TInv2TPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TInv2TPostRequestBody} and sets the default values. - */ - public TInv2TPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TInv2TPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TInv2TPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TInv2TPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the degFreedom property value. The degFreedom property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDegFreedom() { - return this.backingStore.get("degFreedom"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("degFreedom", (n) -> { this.setDegFreedom(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("probability", (n) -> { this.setProbability(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the probability property value. The probability property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getProbability() { - return this.backingStore.get("probability"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("degFreedom", this.getDegFreedom()); - writer.writeObjectValue("probability", this.getProbability()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the degFreedom property value. The degFreedom property - * @param value Value to set for the degFreedom property. - */ - public void setDegFreedom(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("degFreedom", value); - } - /** - * Sets the probability property value. The probability property - * @param value Value to set for the probability property. - */ - public void setProbability(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("probability", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java deleted file mode 100644 index 6f4825e7ee7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/t_inv_2t/TInv2TRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.t_inv_2t; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java deleted file mode 100644 index 00cf8b287dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tan/TanPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tan; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TanPostRequestBody} and sets the default values. - */ - public TanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java deleted file mode 100644 index bf2f33ce619..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tan/TanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tan; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java deleted file mode 100644 index b662ea504f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tanh/TanhPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tanh; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TanhPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TanhPostRequestBody} and sets the default values. - */ - public TanhPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TanhPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TanhPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TanhPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java deleted file mode 100644 index 163a30870c7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tanh/TanhRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tanh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java deleted file mode 100644 index e8d9acca76a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbilleq/TbillEqPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbilleq; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillEqPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillEqPostRequestBody} and sets the default values. - */ - public TbillEqPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TbillEqPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillEqPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillEqPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java deleted file mode 100644 index 47ffa7026e1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbilleq/TbillEqRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbilleq; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java deleted file mode 100644 index 5fd0ca0ff23..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillprice/TbillPricePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbillprice; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillPricePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillPricePostRequestBody} and sets the default values. - */ - public TbillPricePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TbillPricePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillPricePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillPricePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the discount property value. The discount property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDiscount() { - return this.backingStore.get("discount"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("discount", (n) -> { this.setDiscount(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("discount", this.getDiscount()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the discount property value. The discount property - * @param value Value to set for the discount property. - */ - public void setDiscount(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("discount", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java deleted file mode 100644 index 7486dcb5894..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillprice/TbillPriceRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbillprice; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java deleted file mode 100644 index c4a4f31a879..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbillyield; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TbillYieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TbillYieldPostRequestBody} and sets the default values. - */ - public TbillYieldPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TbillYieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TbillYieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TbillYieldPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java deleted file mode 100644 index e15a6169989..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/tbillyield/TbillYieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.tbillyield; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java deleted file mode 100644 index 2796ac9e57b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/text/TextPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.text; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TextPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TextPostRequestBody} and sets the default values. - */ - public TextPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TextPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TextPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TextPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("formatText", (n) -> { this.setFormatText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the formatText property value. The formatText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFormatText() { - return this.backingStore.get("formatText"); - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("formatText", this.getFormatText()); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the formatText property value. The formatText property - * @param value Value to set for the formatText property. - */ - public void setFormatText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("formatText", value); - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java deleted file mode 100644 index 3122bd84ac5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/text/TextRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.text; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java deleted file mode 100644 index c221cfd85c7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/time/TimePostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.time; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TimePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TimePostRequestBody} and sets the default values. - */ - public TimePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TimePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TimePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TimePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("hour", (n) -> { this.setHour(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("minute", (n) -> { this.setMinute(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("second", (n) -> { this.setSecond(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the hour property value. The hour property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHour() { - return this.backingStore.get("hour"); - } - /** - * Gets the minute property value. The minute property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMinute() { - return this.backingStore.get("minute"); - } - /** - * Gets the second property value. The second property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSecond() { - return this.backingStore.get("second"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("hour", this.getHour()); - writer.writeObjectValue("minute", this.getMinute()); - writer.writeObjectValue("second", this.getSecond()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the hour property value. The hour property - * @param value Value to set for the hour property. - */ - public void setHour(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("hour", value); - } - /** - * Sets the minute property value. The minute property - * @param value Value to set for the minute property. - */ - public void setMinute(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("minute", value); - } - /** - * Sets the second property value. The second property - * @param value Value to set for the second property. - */ - public void setSecond(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("second", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java deleted file mode 100644 index c2134351193..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/time/TimeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.time; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java deleted file mode 100644 index 41e09cbe141..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/timevalue/TimevaluePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.timevalue; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TimevaluePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TimevaluePostRequestBody} and sets the default values. - */ - public TimevaluePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TimevaluePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TimevaluePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TimevaluePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("timeText", (n) -> { this.setTimeText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the timeText property value. The timeText property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTimeText() { - return this.backingStore.get("timeText"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("timeText", this.getTimeText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the timeText property value. The timeText property - * @param value Value to set for the timeText property. - */ - public void setTimeText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("timeText", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java deleted file mode 100644 index 0e13b9bab62..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/timevalue/TimevalueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.timevalue; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java deleted file mode 100644 index 0e21c1e90d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/today/TodayRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.today; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java deleted file mode 100644 index 8af867bb8c7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trim/TrimPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trim; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TrimPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TrimPostRequestBody} and sets the default values. - */ - public TrimPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TrimPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TrimPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TrimPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java deleted file mode 100644 index 92d25dfb1ec..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trim/TrimRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trim; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java deleted file mode 100644 index 145a34dc2c4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trimmean/TrimMeanPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trimmean; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TrimMeanPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TrimMeanPostRequestBody} and sets the default values. - */ - public TrimMeanPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TrimMeanPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TrimMeanPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TrimMeanPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("percent", (n) -> { this.setPercent(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the percent property value. The percent property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPercent() { - return this.backingStore.get("percent"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("percent", this.getPercent()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the percent property value. The percent property - * @param value Value to set for the percent property. - */ - public void setPercent(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("percent", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java deleted file mode 100644 index b9b3e636648..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trimmean/TrimMeanRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trimmean; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java deleted file mode 100644 index ac11782b585..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trueescaped/TrueRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trueescaped; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java deleted file mode 100644 index 10c014f3d1c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trunc/TruncPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trunc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TruncPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TruncPostRequestBody} and sets the default values. - */ - public TruncPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TruncPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TruncPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TruncPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("numDigits", (n) -> { this.setNumDigits(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Gets the numDigits property value. The numDigits property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumDigits() { - return this.backingStore.get("numDigits"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeObjectValue("numDigits", this.getNumDigits()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } - /** - * Sets the numDigits property value. The numDigits property - * @param value Value to set for the numDigits property. - */ - public void setNumDigits(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("numDigits", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java deleted file mode 100644 index b2c022e2820..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/trunc/TruncRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.trunc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java deleted file mode 100644 index 523b83afb5a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/type/TypePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.type; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TypePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link TypePostRequestBody} and sets the default values. - */ - public TypePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link TypePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static TypePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new TypePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("value", (n) -> { this.setValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the value property value. The value property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValue() { - return this.backingStore.get("value"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("value", this.getValue()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the value property value. The value property - * @param value Value to set for the value property. - */ - public void setValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("value", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java deleted file mode 100644 index fd36057db63..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/type/TypeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.type; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java deleted file mode 100644 index 93dbed780e8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unichar/UnicharPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.unichar; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnicharPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UnicharPostRequestBody} and sets the default values. - */ - public UnicharPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link UnicharPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UnicharPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UnicharPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java deleted file mode 100644 index 7ef0346eb09..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unichar/UnicharRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.unichar; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java deleted file mode 100644 index 8c20304636f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unicode/UnicodePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.unicode; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UnicodePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UnicodePostRequestBody} and sets the default values. - */ - public UnicodePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link UnicodePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UnicodePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UnicodePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java deleted file mode 100644 index 3ed8349781c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/unicode/UnicodeRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.unicode; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java deleted file mode 100644 index d42f0b0eb50..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/upper/UpperPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.upper; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UpperPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UpperPostRequestBody} and sets the default values. - */ - public UpperPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link UpperPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UpperPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UpperPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java deleted file mode 100644 index ada941aef04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/upper/UpperRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.upper; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java deleted file mode 100644 index f588ed98ee8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/usdollar/UsdollarPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.usdollar; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class UsdollarPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link UsdollarPostRequestBody} and sets the default values. - */ - public UsdollarPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link UsdollarPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static UsdollarPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new UsdollarPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the decimals property value. The decimals property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDecimals() { - return this.backingStore.get("decimals"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("decimals", (n) -> { this.setDecimals(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("number", (n) -> { this.setNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the number property value. The number property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNumber() { - return this.backingStore.get("number"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("decimals", this.getDecimals()); - writer.writeObjectValue("number", this.getNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the decimals property value. The decimals property - * @param value Value to set for the decimals property. - */ - public void setDecimals(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("decimals", value); - } - /** - * Sets the number property value. The number property - * @param value Value to set for the number property. - */ - public void setNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("number", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java deleted file mode 100644 index c1401f3fd03..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/usdollar/UsdollarRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.usdollar; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java deleted file mode 100644 index e224912d0dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/value/ValuePostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.value; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ValuePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ValuePostRequestBody} and sets the default values. - */ - public ValuePostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ValuePostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ValuePostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ValuePostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("text", (n) -> { this.setText(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the text property value. The text property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getText() { - return this.backingStore.get("text"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("text", this.getText()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the text property value. The text property - * @param value Value to set for the text property. - */ - public void setText(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("text", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java deleted file mode 100644 index 3f2dfe2feef..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/value/ValueRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.value; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java deleted file mode 100644 index 36bcd0e961b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_p/VarPPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.var_p; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarPPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarPPostRequestBody} and sets the default values. - */ - public VarPPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VarPPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarPPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarPPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java deleted file mode 100644 index 561699e3e09..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_p/VarPRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.var_p; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java deleted file mode 100644 index 5b211354cfb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_s/VarSPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.var_s; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarSPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarSPostRequestBody} and sets the default values. - */ - public VarSPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VarSPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarSPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarSPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java deleted file mode 100644 index c658b932314..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/var_s/VarSRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.var_s; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java deleted file mode 100644 index b41fa3c2124..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vara/VarAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vara; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarAPostRequestBody} and sets the default values. - */ - public VarAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VarAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java deleted file mode 100644 index 9c3649d9018..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vara/VarARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vara; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java deleted file mode 100644 index e796ba663da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/varpa/VarPAPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.varpa; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VarPAPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VarPAPostRequestBody} and sets the default values. - */ - public VarPAPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VarPAPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VarPAPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VarPAPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java deleted file mode 100644 index 66451f0aea4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/varpa/VarPARequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.varpa; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java deleted file mode 100644 index 20271a75b81..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vdb/VdbPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vdb; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VdbPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VdbPostRequestBody} and sets the default values. - */ - public VdbPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VdbPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VdbPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VdbPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the cost property value. The cost property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCost() { - return this.backingStore.get("cost"); - } - /** - * Gets the endPeriod property value. The endPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndPeriod() { - return this.backingStore.get("endPeriod"); - } - /** - * Gets the factor property value. The factor property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFactor() { - return this.backingStore.get("factor"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("cost", (n) -> { this.setCost(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("endPeriod", (n) -> { this.setEndPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("factor", (n) -> { this.setFactor(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("life", (n) -> { this.setLife(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("noSwitch", (n) -> { this.setNoSwitch(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("salvage", (n) -> { this.setSalvage(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startPeriod", (n) -> { this.setStartPeriod(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the life property value. The life property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLife() { - return this.backingStore.get("life"); - } - /** - * Gets the noSwitch property value. The noSwitch property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getNoSwitch() { - return this.backingStore.get("noSwitch"); - } - /** - * Gets the salvage property value. The salvage property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSalvage() { - return this.backingStore.get("salvage"); - } - /** - * Gets the startPeriod property value. The startPeriod property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartPeriod() { - return this.backingStore.get("startPeriod"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("cost", this.getCost()); - writer.writeObjectValue("endPeriod", this.getEndPeriod()); - writer.writeObjectValue("factor", this.getFactor()); - writer.writeObjectValue("life", this.getLife()); - writer.writeObjectValue("noSwitch", this.getNoSwitch()); - writer.writeObjectValue("salvage", this.getSalvage()); - writer.writeObjectValue("startPeriod", this.getStartPeriod()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the cost property value. The cost property - * @param value Value to set for the cost property. - */ - public void setCost(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cost", value); - } - /** - * Sets the endPeriod property value. The endPeriod property - * @param value Value to set for the endPeriod property. - */ - public void setEndPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endPeriod", value); - } - /** - * Sets the factor property value. The factor property - * @param value Value to set for the factor property. - */ - public void setFactor(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("factor", value); - } - /** - * Sets the life property value. The life property - * @param value Value to set for the life property. - */ - public void setLife(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("life", value); - } - /** - * Sets the noSwitch property value. The noSwitch property - * @param value Value to set for the noSwitch property. - */ - public void setNoSwitch(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("noSwitch", value); - } - /** - * Sets the salvage property value. The salvage property - * @param value Value to set for the salvage property. - */ - public void setSalvage(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("salvage", value); - } - /** - * Sets the startPeriod property value. The startPeriod property - * @param value Value to set for the startPeriod property. - */ - public void setStartPeriod(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startPeriod", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java deleted file mode 100644 index 7067f08f57c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vdb/VdbRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vdb; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java deleted file mode 100644 index 20a11534205..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vlookup/VlookupPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vlookup; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class VlookupPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link VlookupPostRequestBody} and sets the default values. - */ - public VlookupPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link VlookupPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static VlookupPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new VlookupPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the colIndexNum property value. The colIndexNum property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getColIndexNum() { - return this.backingStore.get("colIndexNum"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("colIndexNum", (n) -> { this.setColIndexNum(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("lookupValue", (n) -> { this.setLookupValue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rangeLookup", (n) -> { this.setRangeLookup(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("tableArray", (n) -> { this.setTableArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the lookupValue property value. The lookupValue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getLookupValue() { - return this.backingStore.get("lookupValue"); - } - /** - * Gets the rangeLookup property value. The rangeLookup property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRangeLookup() { - return this.backingStore.get("rangeLookup"); - } - /** - * Gets the tableArray property value. The tableArray property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getTableArray() { - return this.backingStore.get("tableArray"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("colIndexNum", this.getColIndexNum()); - writer.writeObjectValue("lookupValue", this.getLookupValue()); - writer.writeObjectValue("rangeLookup", this.getRangeLookup()); - writer.writeObjectValue("tableArray", this.getTableArray()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the colIndexNum property value. The colIndexNum property - * @param value Value to set for the colIndexNum property. - */ - public void setColIndexNum(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("colIndexNum", value); - } - /** - * Sets the lookupValue property value. The lookupValue property - * @param value Value to set for the lookupValue property. - */ - public void setLookupValue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("lookupValue", value); - } - /** - * Sets the rangeLookup property value. The rangeLookup property - * @param value Value to set for the rangeLookup property. - */ - public void setRangeLookup(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rangeLookup", value); - } - /** - * Sets the tableArray property value. The tableArray property - * @param value Value to set for the tableArray property. - */ - public void setTableArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("tableArray", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java deleted file mode 100644 index b68571843bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/vlookup/VlookupRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.vlookup; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java deleted file mode 100644 index 47f7e191030..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weekday/WeekdayPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weekday; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeekdayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeekdayPostRequestBody} and sets the default values. - */ - public WeekdayPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WeekdayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeekdayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeekdayPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("returnType", (n) -> { this.setReturnType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the returnType property value. The returnType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReturnType() { - return this.backingStore.get("returnType"); - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("returnType", this.getReturnType()); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the returnType property value. The returnType property - * @param value Value to set for the returnType property. - */ - public void setReturnType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("returnType", value); - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java deleted file mode 100644 index 0cab22f2b08..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weekday/WeekdayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weekday; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java deleted file mode 100644 index d45004241b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weeknum/WeekNumPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weeknum; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeekNumPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeekNumPostRequestBody} and sets the default values. - */ - public WeekNumPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WeekNumPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeekNumPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeekNumPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("returnType", (n) -> { this.setReturnType(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the returnType property value. The returnType property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReturnType() { - return this.backingStore.get("returnType"); - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("returnType", this.getReturnType()); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the returnType property value. The returnType property - * @param value Value to set for the returnType property. - */ - public void setReturnType(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("returnType", value); - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java deleted file mode 100644 index 1aa9147bfc2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weeknum/WeekNumRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weeknum; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java deleted file mode 100644 index c086c334949..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weibull_dist; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WeibullDistPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WeibullDistPostRequestBody} and sets the default values. - */ - public WeibullDistPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WeibullDistPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WeibullDistPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WeibullDistPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the alpha property value. The alpha property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getAlpha() { - return this.backingStore.get("alpha"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the beta property value. The beta property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBeta() { - return this.backingStore.get("beta"); - } - /** - * Gets the cumulative property value. The cumulative property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getCumulative() { - return this.backingStore.get("cumulative"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("alpha", (n) -> { this.setAlpha(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("beta", (n) -> { this.setBeta(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("cumulative", (n) -> { this.setCumulative(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("alpha", this.getAlpha()); - writer.writeObjectValue("beta", this.getBeta()); - writer.writeObjectValue("cumulative", this.getCumulative()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the alpha property value. The alpha property - * @param value Value to set for the alpha property. - */ - public void setAlpha(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("alpha", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the beta property value. The beta property - * @param value Value to set for the beta property. - */ - public void setBeta(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("beta", value); - } - /** - * Sets the cumulative property value. The cumulative property - * @param value Value to set for the cumulative property. - */ - public void setCumulative(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("cumulative", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java deleted file mode 100644 index 45627420ecc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/weibull_dist/WeibullDistRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.weibull_dist; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java deleted file mode 100644 index 16fe46ba9f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday/WorkDayPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.workday; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkDayPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WorkDayPostRequestBody} and sets the default values. - */ - public WorkDayPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WorkDayPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WorkDayPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WorkDayPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the days property value. The days property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDays() { - return this.backingStore.get("days"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("days", (n) -> { this.setDays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("days", this.getDays()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the days property value. The days property - * @param value Value to set for the days property. - */ - public void setDays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("days", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java deleted file mode 100644 index e8d3d85b3fc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday/WorkDayRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.workday; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java deleted file mode 100644 index b350f95b6d6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlPostRequestBody.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.workday_intl; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkDayIntlPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link WorkDayIntlPostRequestBody} and sets the default values. - */ - public WorkDayIntlPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link WorkDayIntlPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static WorkDayIntlPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new WorkDayIntlPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the days property value. The days property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDays() { - return this.backingStore.get("days"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(4); - deserializerMap.put("days", (n) -> { this.setDays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("holidays", (n) -> { this.setHolidays(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("weekend", (n) -> { this.setWeekend(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the holidays property value. The holidays property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getHolidays() { - return this.backingStore.get("holidays"); - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Gets the weekend property value. The weekend property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getWeekend() { - return this.backingStore.get("weekend"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("days", this.getDays()); - writer.writeObjectValue("holidays", this.getHolidays()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeObjectValue("weekend", this.getWeekend()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the days property value. The days property - * @param value Value to set for the days property. - */ - public void setDays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("days", value); - } - /** - * Sets the holidays property value. The holidays property - * @param value Value to set for the holidays property. - */ - public void setHolidays(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("holidays", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } - /** - * Sets the weekend property value. The weekend property - * @param value Value to set for the weekend property. - */ - public void setWeekend(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("weekend", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java deleted file mode 100644 index d30b1d1a47e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/workday_intl/WorkDayIntlRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.workday_intl; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java deleted file mode 100644 index d113519ae2a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xirr/XirrPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xirr; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XirrPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XirrPostRequestBody} and sets the default values. - */ - public XirrPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link XirrPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XirrPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XirrPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the dates property value. The dates property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDates() { - return this.backingStore.get("dates"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("dates", (n) -> { this.setDates(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("guess", (n) -> { this.setGuess(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the guess property value. The guess property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getGuess() { - return this.backingStore.get("guess"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("dates", this.getDates()); - writer.writeObjectValue("guess", this.getGuess()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the dates property value. The dates property - * @param value Value to set for the dates property. - */ - public void setDates(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dates", value); - } - /** - * Sets the guess property value. The guess property - * @param value Value to set for the guess property. - */ - public void setGuess(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("guess", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java deleted file mode 100644 index 316e7c28a37..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xirr/XirrRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xirr; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java deleted file mode 100644 index e241ad717c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xnpv/XnpvPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xnpv; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XnpvPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XnpvPostRequestBody} and sets the default values. - */ - public XnpvPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link XnpvPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XnpvPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XnpvPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the dates property value. The dates property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getDates() { - return this.backingStore.get("dates"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("dates", (n) -> { this.setDates(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("dates", this.getDates()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the dates property value. The dates property - * @param value Value to set for the dates property. - */ - public void setDates(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("dates", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java deleted file mode 100644 index b37e3166e50..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xnpv/XnpvRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xnpv; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java deleted file mode 100644 index 41c2f2578b2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xor/XorPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xor; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class XorPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link XorPostRequestBody} and sets the default values. - */ - public XorPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link XorPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static XorPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new XorPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java deleted file mode 100644 index 44c84abc016..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/xor/XorRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.xor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java deleted file mode 100644 index 5faa1d62c4e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/year/YearPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.year; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YearPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YearPostRequestBody} and sets the default values. - */ - public YearPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YearPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YearPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YearPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the serialNumber property value. The serialNumber property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSerialNumber() { - return this.backingStore.get("serialNumber"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("serialNumber", this.getSerialNumber()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the serialNumber property value. The serialNumber property - * @param value Value to set for the serialNumber property. - */ - public void setSerialNumber(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("serialNumber", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java deleted file mode 100644 index 2a05a5ad3ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/year/YearRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.year; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java deleted file mode 100644 index 49ab1cb6d96..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yearfrac/YearFracPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yearfrac; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YearFracPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YearFracPostRequestBody} and sets the default values. - */ - public YearFracPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YearFracPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YearFracPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YearFracPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * Gets the endDate property value. The endDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndDate() { - return this.backingStore.get("endDate"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("endDate", (n) -> { this.setEndDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startDate", (n) -> { this.setStartDate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startDate property value. The startDate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartDate() { - return this.backingStore.get("startDate"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("endDate", this.getEndDate()); - writer.writeObjectValue("startDate", this.getStartDate()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the endDate property value. The endDate property - * @param value Value to set for the endDate property. - */ - public void setEndDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endDate", value); - } - /** - * Sets the startDate property value. The startDate property - * @param value Value to set for the startDate property. - */ - public void setStartDate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startDate", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java deleted file mode 100644 index 35f7f72568c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yearfrac/YearFracRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yearfrac; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java deleted file mode 100644 index 24501bf97d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yield/YieldPostRequestBody.java +++ /dev/null @@ -1,210 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yield; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldPostRequestBody} and sets the default values. - */ - public YieldPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YieldPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(7); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("frequency", (n) -> { this.setFrequency(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the frequency property value. The frequency property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getFrequency() { - return this.backingStore.get("frequency"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("frequency", this.getFrequency()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the frequency property value. The frequency property - * @param value Value to set for the frequency property. - */ - public void setFrequency(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("frequency", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java deleted file mode 100644 index 280b436b59b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yield/YieldRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yield; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java deleted file mode 100644 index cecf66f6cc7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscPostRequestBody.java +++ /dev/null @@ -1,176 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yielddisc; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldDiscPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldDiscPostRequestBody} and sets the default values. - */ - public YieldDiscPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YieldDiscPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldDiscPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldDiscPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(5); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("redemption", (n) -> { this.setRedemption(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the redemption property value. The redemption property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRedemption() { - return this.backingStore.get("redemption"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("redemption", this.getRedemption()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the redemption property value. The redemption property - * @param value Value to set for the redemption property. - */ - public void setRedemption(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("redemption", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java deleted file mode 100644 index da0dd49e282..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yielddisc/YieldDiscRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yielddisc; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java deleted file mode 100644 index 156624afd4f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yieldmat/YieldMatPostRequestBody.java +++ /dev/null @@ -1,193 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yieldmat; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class YieldMatPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link YieldMatPostRequestBody} and sets the default values. - */ - public YieldMatPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link YieldMatPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static YieldMatPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new YieldMatPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the basis property value. The basis property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getBasis() { - return this.backingStore.get("basis"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(6); - deserializerMap.put("basis", (n) -> { this.setBasis(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("issue", (n) -> { this.setIssue(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("maturity", (n) -> { this.setMaturity(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("pr", (n) -> { this.setPr(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("rate", (n) -> { this.setRate(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("settlement", (n) -> { this.setSettlement(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the issue property value. The issue property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getIssue() { - return this.backingStore.get("issue"); - } - /** - * Gets the maturity property value. The maturity property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getMaturity() { - return this.backingStore.get("maturity"); - } - /** - * Gets the pr property value. The pr property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getPr() { - return this.backingStore.get("pr"); - } - /** - * Gets the rate property value. The rate property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getRate() { - return this.backingStore.get("rate"); - } - /** - * Gets the settlement property value. The settlement property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSettlement() { - return this.backingStore.get("settlement"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("basis", this.getBasis()); - writer.writeObjectValue("issue", this.getIssue()); - writer.writeObjectValue("maturity", this.getMaturity()); - writer.writeObjectValue("pr", this.getPr()); - writer.writeObjectValue("rate", this.getRate()); - writer.writeObjectValue("settlement", this.getSettlement()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the basis property value. The basis property - * @param value Value to set for the basis property. - */ - public void setBasis(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("basis", value); - } - /** - * Sets the issue property value. The issue property - * @param value Value to set for the issue property. - */ - public void setIssue(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("issue", value); - } - /** - * Sets the maturity property value. The maturity property - * @param value Value to set for the maturity property. - */ - public void setMaturity(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("maturity", value); - } - /** - * Sets the pr property value. The pr property - * @param value Value to set for the pr property. - */ - public void setPr(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("pr", value); - } - /** - * Sets the rate property value. The rate property - * @param value Value to set for the rate property. - */ - public void setRate(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("rate", value); - } - /** - * Sets the settlement property value. The settlement property - * @param value Value to set for the settlement property. - */ - public void setSettlement(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("settlement", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java deleted file mode 100644 index 943b8984c78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/yieldmat/YieldMatRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.yieldmat; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java deleted file mode 100644 index 986521bc74d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/z_test/ZTestPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.z_test; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ZTestPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ZTestPostRequestBody} and sets the default values. - */ - public ZTestPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ZTestPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ZTestPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ZTestPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the array property value. The array property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getArray() { - return this.backingStore.get("array"); - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("array", (n) -> { this.setArray(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("sigma", (n) -> { this.setSigma(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("x", (n) -> { this.setX(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the sigma property value. The sigma property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSigma() { - return this.backingStore.get("sigma"); - } - /** - * Gets the x property value. The x property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getX() { - return this.backingStore.get("x"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("array", this.getArray()); - writer.writeObjectValue("sigma", this.getSigma()); - writer.writeObjectValue("x", this.getX()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the array property value. The array property - * @param value Value to set for the array property. - */ - public void setArray(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("array", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the sigma property value. The sigma property - * @param value Value to set for the sigma property. - */ - public void setSigma(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sigma", value); - } - /** - * Sets the x property value. The x property - * @param value Value to set for the x property. - */ - public void setX(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("x", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java deleted file mode 100644 index f596051bfd0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/functions/z_test/ZTestRequestBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.functions.z_test; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFunctionResult; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/NamesRequestBuilder.java deleted file mode 100644 index 3850d3f04a0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/NamesRequestBuilder.java +++ /dev/null @@ -1,261 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookNamedItem; -import com.microsoft.graph.beta.models.WorkbookNamedItemCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.addformulalocal.AddFormulaLocalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java deleted file mode 100644 index 7cc8835ef2d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("comment", this.getComment()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java deleted file mode 100644 index aa33c8d67c4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java deleted file mode 100644 index 115b0383406..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java deleted file mode 100644 index afd848cda2f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/addformulalocal/AddFormulaLocalRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.addformulalocal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java deleted file mode 100644 index 53557e4fc04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java deleted file mode 100644 index 1babebc1e06..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/WorkbookNamedItemItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookNamedItem; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java deleted file mode 100644 index 0c0562d6695..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 73a17213a40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/names/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.names.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java deleted file mode 100644 index 85c8d2cd511..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,234 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.operations; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookOperation; -import com.microsoft.graph.beta.models.WorkbookOperationCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link OperationsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The status of Workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. Nullable. - * @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. Nullable. - * @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. Nullable. - * @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. 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 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. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java deleted file mode 100644 index 705dbf928d7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/operations/item/WorkbookOperationItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.operations.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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. Nullable. - * @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. Nullable. - * @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. Nullable. - * @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. 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 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. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java deleted file mode 100644 index 1a67c485568..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/refreshsession/RefreshSessionRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.refreshsession; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java deleted file mode 100644 index b0c4d44ae9e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/sessioninforesourcewithkey/SessionInfoResourceWithKeyRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.sessioninforesourcewithkey; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java deleted file mode 100644 index 4a9b90cb201..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tablerowoperationresultwithkey/TableRowOperationResultWithKeyRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tablerowoperationresultwithkey; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tableRowOperationResult(key='{key}')", rawUrl); - } - /** - * Invoke function tableRowOperationResult - * @return a {@link WorkbookTableRow} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookTableRow get() { - return get(null); - } - /** - * Invoke function tableRowOperationResult - * @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); - } - /** - * Invoke function tableRowOperationResult - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function tableRowOperationResult - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java deleted file mode 100644 index c4196cd8979..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/TablesRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.models.WorkbookTableCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.WorkbookTableItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java deleted file mode 100644 index d0771755565..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/add/AddPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java deleted file mode 100644 index 968e92e9e42..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/add", rawUrl); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/count/CountGetResponse.java deleted file mode 100644 index 9d3610643e6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java deleted file mode 100644 index b5807532863..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java deleted file mode 100644 index aa82b20745f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/WorkbookTableItemRequestBuilder.java +++ /dev/null @@ -1,327 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.sort.SortRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index 9632fc33d80..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.clearfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 3fdcd04368c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.models.WorkbookTableColumnCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.WorkbookTableColumnItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java deleted file mode 100644 index 6ab0b47bc2e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeIntegerValue("index", this.getIndex()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java deleted file mode 100644 index 2d86b74bd57..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java deleted file mode 100644 index 3bd8fe1a237..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index 24ea08a547f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java deleted file mode 100644 index d9a13bf2e28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.FilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index de85c3eef65..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java deleted file mode 100644 index bc811bb1737..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,336 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFilter; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply.ApplyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottomitemsfilter.ApplyBottomItemsFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottompercentfilter.ApplyBottomPercentFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycellcolorfilter.ApplyCellColorFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycustomfilter.ApplyCustomFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applydynamicfilter.ApplyDynamicFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyfontcolorfilter.ApplyFontColorFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter.ApplyIconFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytopitemsfilter.ApplyTopItemsFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytoppercentfilter.ApplyTopPercentFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter.ApplyValuesFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java deleted file mode 100644 index 45c54588c13..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java deleted file mode 100644 index 4418a429159..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java deleted file mode 100644 index 0fc6f96e827..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java deleted file mode 100644 index 660706e3eb0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottomitemsfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java deleted file mode 100644 index 0f67c4b852c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java deleted file mode 100644 index c2abc9acab6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applybottompercentfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java deleted file mode 100644 index 9f7d2892dde..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java deleted file mode 100644 index e9ce58416de..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycellcolorfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java deleted file mode 100644 index bb897396d8b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java deleted file mode 100644 index c052b519bff..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applycustomfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java deleted file mode 100644 index 30f1ac0612d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java deleted file mode 100644 index d0d1320b65d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applydynamicfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java deleted file mode 100644 index 61ab17b57c0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java deleted file mode 100644 index e7d3cb21221..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyfontcolorfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java deleted file mode 100644 index 8f120aac4e8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java deleted file mode 100644 index bc2fad26275..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java deleted file mode 100644 index a3790ebba5b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java deleted file mode 100644 index ba27940dc0b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytopitemsfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java deleted file mode 100644 index 85bb8abdccd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java deleted file mode 100644 index 3269b50fb80..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applytoppercentfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java deleted file mode 100644 index f894819f391..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyValuesFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyValuesFilterPostRequestBody} and sets the default values. - */ - public ApplyValuesFilterPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ApplyValuesFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyValuesFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyValuesFilterPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java deleted file mode 100644 index 43e27029616..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.applyvaluesfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java deleted file mode 100644 index 26d44ec8236..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/filter/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.filter.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 2e4d5dc7fbe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java deleted file mode 100644 index 60dacac0fcd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 795cbe2394b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.item.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index c811942d01d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.filter.FilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 43245b86377..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java deleted file mode 100644 index 42c30e09975..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.filter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index cb2946afecf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 1bbeba93db4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 61b24428430..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.columns.itematwithindex.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index e98a40e5145..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.converttorange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 9ad73b0bec2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 910034f49bd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java deleted file mode 100644 index 4176b1c5b10..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()", rawUrl); - } - /** - * Gets 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); - } - /** - * Gets 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); - } - /** - * Gets the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index b23a68c76d1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.reapplyfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java deleted file mode 100644 index a12ad014036..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.models.WorkbookTableRowCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.item.WorkbookTableRowItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java deleted file mode 100644 index f1bc95ae306..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/add/AddPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeIntegerValue("index", this.getIndex()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java deleted file mode 100644 index e32da5548bd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java deleted file mode 100644 index ee6faa2a039..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java deleted file mode 100644 index b87dd1e1fb9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java deleted file mode 100644 index 94b1663a923..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java deleted file mode 100644 index ac5c71190f0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", rawUrl); - } - /** - * Returns the range object associated with the entire row. - * @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 associated with the entire row. - * @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 associated with the entire row. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the range object associated with the entire row. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index aacfbfc2599..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 79c2681761c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.rows.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", rawUrl); - } - /** - * Returns the range object associated with the entire row. - * @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 associated with the entire row. - * @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 associated with the entire row. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the range object associated with the entire row. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java deleted file mode 100644 index 56a16c1eae0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/SortRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.sort; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableSort; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.sort.apply.ApplyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.sort.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java deleted file mode 100644 index 3e02c63286f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.sort.apply; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java deleted file mode 100644 index 4817bcd6c23..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.sort.apply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java deleted file mode 100644 index 4c30117f010..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.sort.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java deleted file mode 100644 index a7a601dee13..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/sort/reapply/ReapplyRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.sort.reapply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 33d7dda1357..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 49a2eca4077..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index dee70e56296..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,197 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.sort.SortRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index eec4c2074d8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.clearfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java deleted file mode 100644 index af05c21f5a3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index 7d5d115eb28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.converttorange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 913d7d82c13..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 365687eae13..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 44f2eb6921c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/range()", rawUrl); - } - /** - * Gets 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); - } - /** - * Gets 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); - } - /** - * Gets the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index cdbd191992b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.reapplyfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java deleted file mode 100644 index 9812be3fa57..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java deleted file mode 100644 index 148430c9e25..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/sort/SortRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.sort; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index a4592471fa8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 70b01129a9b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.tables.itematwithindex.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java deleted file mode 100644 index fb84572f166..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/WorksheetsRequestBuilder.java +++ /dev/null @@ -1,252 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookWorksheet; -import com.microsoft.graph.beta.models.WorkbookWorksheetCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java deleted file mode 100644 index 6b89dc779cc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/add/AddPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java deleted file mode 100644 index 2faa78dfa3b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java deleted file mode 100644 index 1f48eca8e3d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java deleted file mode 100644 index cf67e9ee6d7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/WorkbookWorksheetItemRequestBuilder.java +++ /dev/null @@ -1,335 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookWorksheet; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.cellwithrowwithcolumn.CellWithRowWithColumnRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.ChartsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.NamesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.PivotTablesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.protection.ProtectionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.rangewithaddress.RangeWithAddressRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.TablesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.TasksRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.usedrange.UsedRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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 manage the tasks property of the microsoft.graph.workbookWorksheet entity. - * @return a {@link TasksRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TasksRequestBuilder tasks() { - return new TasksRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java deleted file mode 100644 index d8d8a3d92b9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/cellwithrowwithcolumn/CellWithRowWithColumnRequestBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.cellwithrowwithcolumn; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java deleted file mode 100644 index aef3c8ae4c0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/ChartsRequestBuilder.java +++ /dev/null @@ -1,274 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChart; -import com.microsoft.graph.beta.models.WorkbookChartCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.WorkbookChartItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.ItemAtWithIndexRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java deleted file mode 100644 index 955d87b0a99..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Gets the type property value. The type property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getType() { - return this.backingStore.get("type"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeStringValue("type", this.getType()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } - /** - * Sets the type property value. The type property - * @param value Value to set for the type property. - */ - public void setType(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("type", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java deleted file mode 100644 index d406f17b60b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java deleted file mode 100644 index 7a00b195f62..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java deleted file mode 100644 index b5144cd7ce5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java deleted file mode 100644 index 4e21a45055b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/WorkbookChartItemRequestBuilder.java +++ /dev/null @@ -1,357 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChart; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.AxesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.image.ImageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.LegendRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.SeriesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata.SetDataRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title.TitleRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java deleted file mode 100644 index 1b7d78bdbc5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxes; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.CategoryAxisRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.SeriesAxisRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java deleted file mode 100644 index 3b8d29b6705..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/CategoryAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxis; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/FormatRequestBuilder.java deleted file mode 100644 index 5212a4cf195..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index ea9e410bda6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index b55a2d47cc8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 0bf4c2a65db..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/MajorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index adabb69276b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index c8ae8400743..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 3fd6f142d37..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 9ba277f9880..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.majorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/MinorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index 558a0a1795e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index 65f06a9ee40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 53f82b8a062..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index fdc2433e8c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.minorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/TitleRequestBuilder.java deleted file mode 100644 index b67f20381aa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitle; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index 6521af1a275..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index db2d5982bc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/categoryaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.categoryaxis.title.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java deleted file mode 100644 index f9c0a6fb41f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/SeriesAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxis; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/FormatRequestBuilder.java deleted file mode 100644 index 755610923f3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index bb8c30b588a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index c9557d0ec8e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index bd5567a5b7d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/MajorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index 014a96ac81d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index e9d72bbb45a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index c74abdaf6fa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 0019032b146..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.majorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/MinorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index 68016b33665..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index 330431d0926..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index abecdd65392..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 9730bd376b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.minorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/TitleRequestBuilder.java deleted file mode 100644 index aeddb001b89..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitle; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index 2fe93a5b1bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 54a06edb254..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/seriesaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.seriesaxis.title.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java deleted file mode 100644 index bc5c706b314..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/ValueAxisRequestBuilder.java +++ /dev/null @@ -1,264 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxis; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.MajorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.MinorGridlinesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/FormatRequestBuilder.java deleted file mode 100644 index 9950741e7cc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.font.FontRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/font/FontRequestBuilder.java deleted file mode 100644 index 803480ab1ad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/LineRequestBuilder.java deleted file mode 100644 index 59bd61bd5e9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 067ba191471..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/MajorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/MajorGridlinesRequestBuilder.java deleted file mode 100644 index e1eec2249e4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/MajorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index 996d32a1843..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index e8988671e4d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 7e1d4cfeb78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/majorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.majorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/MinorGridlinesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/MinorGridlinesRequestBuilder.java deleted file mode 100644 index 6931e203227..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/MinorGridlinesRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlines; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/FormatRequestBuilder.java deleted file mode 100644 index b2671f956aa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartGridlinesFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/LineRequestBuilder.java deleted file mode 100644 index 93fa8989be0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 66ec37374f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/minorgridlines/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.minorgridlines.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/TitleRequestBuilder.java deleted file mode 100644 index f63e274aa4b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitle; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/FormatRequestBuilder.java deleted file mode 100644 index 751e129f67d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAxisTitleFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 16c47094f4c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/axes/valueaxis/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.axes.valueaxis.title.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index 45c763965bc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartDataLabels; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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 datalabels 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 datalabels 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 datalabels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the datalabels 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 datalabels 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java deleted file mode 100644 index 21eafacc79b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartDataLabelFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/FillRequestBuilder.java deleted file mode 100644 index e5895476f31..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index bc380a4ee96..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index be4c213321b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index 224621b44b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/font/FontRequestBuilder.java deleted file mode 100644 index 97750407cd6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/datalabels/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.datalabels.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java deleted file mode 100644 index cfeb624a8f7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartAreaFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index 9342c7e0dcf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index c664481ea82..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 46567ad289d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index d1448a3e854..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java deleted file mode 100644 index 8ffd909d86e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java deleted file mode 100644 index ec4f950b737..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java deleted file mode 100644 index b11581c8250..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.image; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index 999b847f266..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index 0360f892a57..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index 0731a872095..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index 139a4655b1d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheight; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index 9e01144037e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index 7eecf4762bf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.imagewithwidthwithheightwithfittingmode; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java deleted file mode 100644 index 08346c6abf6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLegend; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java deleted file mode 100644 index fc38a58fd3c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLegendFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/FillRequestBuilder.java deleted file mode 100644 index c9e9551ca74..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 636bfaacdc1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 4746382bd39..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index b9db6237424..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/font/FontRequestBuilder.java deleted file mode 100644 index 1cc0a3f11f3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/legend/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.legend.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java deleted file mode 100644 index 81b955b56d4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.models.WorkbookChartSeriesCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.WorkbookChartSeriesItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java deleted file mode 100644 index 080a7690102..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java deleted file mode 100644 index 1c273dee9dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java deleted file mode 100644 index 4c0aebd4aad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/WorkbookChartSeriesItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java deleted file mode 100644 index 5306e5c71d6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeriesFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index bab1f49998d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index e01fef261bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index cddb080320e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index c1be2aa4b53..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/LineRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/LineRequestBuilder.java deleted file mode 100644 index 3b2693eba23..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/LineRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.line; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartLineFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/ClearRequestBuilder.java deleted file mode 100644 index 944d26482dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/format/line/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.format.line.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java deleted file mode 100644 index 5832eb3b284..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/PointsRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPoint; -import com.microsoft.graph.beta.models.WorkbookChartPointCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.WorkbookChartPointItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountGetResponse.java deleted file mode 100644 index 1200fedccae..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountRequestBuilder.java deleted file mode 100644 index ba85e476b61..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java deleted file mode 100644 index bea44d1e4e6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/WorkbookChartPointItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPoint; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java deleted file mode 100644 index dac048c336f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/FormatRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPointFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/FillRequestBuilder.java deleted file mode 100644 index 24dea985bd7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index 36d1998dade..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 2a9ea23327e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index ed2550fa9dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/item/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.item.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 1f342485dcb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPoint; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index b21ec975395..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/item/points/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.item.points.itematwithindex.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index ae68c9c7462..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index fe94a10335e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java deleted file mode 100644 index f1d29ba1974..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/series/itematwithindex/points/PointsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.series.itematwithindex.points; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartPoint; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java deleted file mode 100644 index 34f7ce26285..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java deleted file mode 100644 index 4b39f486e85..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.setdata; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index f3a1a3c595f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index 534bc6f0d4b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.setposition; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java deleted file mode 100644 index 062a75cdd1e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/TitleRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartTitle; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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 formating 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 formating 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 formating 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 formating 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 formating 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java deleted file mode 100644 index cff40e46b1f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/FormatRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartTitleFormat; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.FillRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/FillRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/FillRequestBuilder.java deleted file mode 100644 index c7dadb865df..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/FillRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartFill; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/ClearRequestBuilder.java deleted file mode 100644 index c04981e0f3d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java deleted file mode 100644 index 9a4ba8a9b25..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java deleted file mode 100644 index 2855e005ed3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/fill/setsolidcolor/SetSolidColorRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.fill.setsolidcolor; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/font/FontRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/font/FontRequestBuilder.java deleted file mode 100644 index 4601e4016b0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/title/format/font/FontRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.title.format.font; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 65b84329182..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index af34e20f41e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,229 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChart; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.axes.AxesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.image.ImageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.legend.LegendRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.series.SeriesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata.SetDataRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.title.TitleRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java deleted file mode 100644 index 0ce2145ba60..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.axes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index 6d079aca440..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.datalabels; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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 datalabels 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 datalabels 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 datalabels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the datalabels 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 datalabels 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java deleted file mode 100644 index 9284b18fb47..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java deleted file mode 100644 index ab8f2c28b54..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java deleted file mode 100644 index 7e4fe026763..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.image; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index 7c7a774a770..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index cc729ea20a7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index c9d52f74666..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index d7a0af9ee75..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheight; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index 6bb4deb88dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index 46f3ec6d8a9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.imagewithwidthwithheightwithfittingmode; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java deleted file mode 100644 index df103d986da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.legend; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java deleted file mode 100644 index 85179513c00..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.series; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java deleted file mode 100644 index 5ff1736c9e4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java deleted file mode 100644 index 07771130256..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setdata; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index 8658014b48f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index 7e314c283a6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.setposition; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java deleted file mode 100644 index da4d4bb9ea5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/title/TitleRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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 formating 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 formating 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 formating 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 formating 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 formating 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 4555692160a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itematwithindex.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java deleted file mode 100644 index 3c5845a0458..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/ItemWithNameRequestBuilder.java +++ /dev/null @@ -1,227 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChart; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.axes.AxesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.datalabels.DataLabelsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.format.FormatRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.image.ImageRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidth.ImageWithWidthRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheight.ImageWithWidthWithHeightRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheightwithfittingmode.ImageWithWidthWithHeightWithFittingModeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.legend.LegendRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.series.SeriesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata.SetDataRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition.SetPositionRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.title.TitleRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java deleted file mode 100644 index b70e86fca3b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/axes/AxesRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.axes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java deleted file mode 100644 index 338140c720f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/datalabels/DataLabelsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.datalabels; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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 datalabels 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 datalabels 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 datalabels on the chart. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Represents the datalabels 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 datalabels 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java deleted file mode 100644 index 266e4ce3a98..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/format/FormatRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.format; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java deleted file mode 100644 index 62069979d93..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java deleted file mode 100644 index cbcc11bdc82..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/image/ImageRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.image; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java deleted file mode 100644 index ca5f1d70bc5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java deleted file mode 100644 index 7de50c4b8b4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidth/ImageWithWidthRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidth; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java deleted file mode 100644 index 79ec6be43cb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java deleted file mode 100644 index 0edfc6c57e3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheight/ImageWithWidthWithHeightRequestBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheight; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java deleted file mode 100644 index 3f4fd32fa41..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java deleted file mode 100644 index 1e67be49a1e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/imagewithwidthwithheightwithfittingmode/ImageWithWidthWithHeightWithFittingModeRequestBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.imagewithwidthwithheightwithfittingmode; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java deleted file mode 100644 index f595a0e4677..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/legend/LegendRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.legend; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java deleted file mode 100644 index 0349ad197bd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/series/SeriesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.series; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookChartSeries; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java deleted file mode 100644 index 90e7b862208..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetDataPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetDataPostRequestBody} and sets the default values. - */ - public SetDataPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetDataPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetDataPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetDataPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("seriesBy", (n) -> { this.setSeriesBy(n.getStringValue()); }); - deserializerMap.put("sourceData", (n) -> { this.setSourceData(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the seriesBy property value. The seriesBy property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getSeriesBy() { - return this.backingStore.get("seriesBy"); - } - /** - * Gets the sourceData property value. The sourceData property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getSourceData() { - return this.backingStore.get("sourceData"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("seriesBy", this.getSeriesBy()); - writer.writeObjectValue("sourceData", this.getSourceData()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the seriesBy property value. The seriesBy property - * @param value Value to set for the seriesBy property. - */ - public void setSeriesBy(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("seriesBy", value); - } - /** - * Sets the sourceData property value. The sourceData property - * @param value Value to set for the sourceData property. - */ - public void setSourceData(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("sourceData", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java deleted file mode 100644 index ea14a990b51..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setdata/SetDataRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setdata; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java deleted file mode 100644 index 2aa41be9cc6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class SetPositionPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link SetPositionPostRequestBody} and sets the default values. - */ - public SetPositionPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link SetPositionPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static SetPositionPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new SetPositionPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the endCell property value. The endCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getEndCell() { - return this.backingStore.get("endCell"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("endCell", (n) -> { this.setEndCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - deserializerMap.put("startCell", (n) -> { this.setStartCell(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the startCell property value. The startCell property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getStartCell() { - return this.backingStore.get("startCell"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("endCell", this.getEndCell()); - writer.writeObjectValue("startCell", this.getStartCell()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the endCell property value. The endCell property - * @param value Value to set for the endCell property. - */ - public void setEndCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("endCell", value); - } - /** - * Sets the startCell property value. The startCell property - * @param value Value to set for the startCell property. - */ - public void setStartCell(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("startCell", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java deleted file mode 100644 index 5d6f23428c6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/setposition/SetPositionRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.setposition; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java deleted file mode 100644 index 074b8c442da..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/title/TitleRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.title; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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 formating 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 formating 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 formating 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 formating 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 formating 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 35cc4cf1f4c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/charts/itemwithname/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.charts.itemwithname.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java deleted file mode 100644 index 7fd78dfa122..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/NamesRequestBuilder.java +++ /dev/null @@ -1,261 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookNamedItem; -import com.microsoft.graph.beta.models.WorkbookNamedItemCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.addformulalocal.AddFormulaLocalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java deleted file mode 100644 index 0eacf3a92a9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * Gets the comment property value. The comment property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getComment() { - return this.backingStore.get("comment"); - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("reference", (n) -> { this.setReference(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the reference property value. The reference property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getReference() { - return this.backingStore.get("reference"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeStringValue("comment", this.getComment()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("reference", this.getReference()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the comment property value. The comment property - * @param value Value to set for the comment property. - */ - public void setComment(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("comment", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the reference property value. The reference property - * @param value Value to set for the reference property. - */ - public void setReference(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("reference", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java deleted file mode 100644 index e250a28f482..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java deleted file mode 100644 index e83b0be74f1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java deleted file mode 100644 index 06baf4b401d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/addformulalocal/AddFormulaLocalRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.addformulalocal; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java deleted file mode 100644 index dbde1513cc7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java deleted file mode 100644 index 79fe3811ef7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/WorkbookNamedItemItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookNamedItem; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java deleted file mode 100644 index 4ccf523a0f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get() { - return get(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookRange} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookRange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookRange::createFromDiscriminatorValue); - } - /** - * Retrieve the properties and relationships of range object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Retrieve the properties and relationships of range object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RangeRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RangeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RangeRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index c6b8a8987f9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/names/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.names.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java deleted file mode 100644 index 14e785490d9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/PivotTablesRequestBuilder.java +++ /dev/null @@ -1,252 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookPivotTable; -import com.microsoft.graph.beta.models.WorkbookPivotTableCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.item.WorkbookPivotTableItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java deleted file mode 100644 index 01385282b06..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java deleted file mode 100644 index 814fb200186..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/WorkbookPivotTableItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookPivotTable; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.item.refresh.RefreshRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java deleted file mode 100644 index 3dbc3fc058f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/refresh/RefreshRequestBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.item.refresh; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/refresh", rawUrl); - } - /** - * Invoke action refresh - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post() { - post(null); - } - /** - * Invoke action refresh - * @param requestConfiguration 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 refresh - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action refresh - * @param requestConfiguration 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 88fc82543f6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java deleted file mode 100644 index 865027beef6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/pivottables/refreshall/RefreshAllRequestBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.pivottables.refreshall; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/refreshAll", rawUrl); - } - /** - * Invoke action refreshAll - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post() { - post(null); - } - /** - * Invoke action refreshAll - * @param requestConfiguration 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 refreshAll - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action refreshAll - * @param requestConfiguration 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java deleted file mode 100644 index 2d63a8a74fb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/ProtectionRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.protection; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookWorksheetProtection; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.protection.protect.ProtectRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java deleted file mode 100644 index 73914b14b8a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.protection.protect; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java deleted file mode 100644 index c24e488e414..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/protect/ProtectRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.protection.protect; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java deleted file mode 100644 index d11459904ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/protection/unprotect/UnprotectRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.protection.unprotect; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java deleted file mode 100644 index 39877e866a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java deleted file mode 100644 index f9a324b2228..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/rangewithaddress/RangeWithAddressRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.rangewithaddress; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java deleted file mode 100644 index 8e756ef56bc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/TablesRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.models.WorkbookTableCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.WorkbookTableItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java deleted file mode 100644 index ccb03749b2d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/add/AddPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java deleted file mode 100644 index 3d495432c1e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return post(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookTable} - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - @jakarta.annotation.Nullable - public WorkbookTable post(@jakarta.annotation.Nonnull final AddPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookTable::createFromDiscriminatorValue); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final AddPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java deleted file mode 100644 index a16e9a4607a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java deleted file mode 100644 index baf9758efcd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java deleted file mode 100644 index 53019ef90b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/WorkbookTableItemRequestBuilder.java +++ /dev/null @@ -1,327 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.SortRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index df98244edaa..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.clearfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 5176665fc38..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.models.WorkbookTableColumnCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.WorkbookTableColumnItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java deleted file mode 100644 index 2907e12cca6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(3); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the name property value. The name property - * @return a {@link String} - */ - @jakarta.annotation.Nullable - public String getName() { - return this.backingStore.get("name"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeIntegerValue("index", this.getIndex()); - writer.writeStringValue("name", this.getName()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the name property value. The name property - * @param value Value to set for the name property. - */ - public void setName(@jakarta.annotation.Nullable final String value) { - this.backingStore.set("name", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java deleted file mode 100644 index cb070a73e7c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java deleted file mode 100644 index bb0dcd44bba..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index a566ecfba2d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java deleted file mode 100644 index ca097d63282..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/WorkbookTableColumnItemRequestBuilder.java +++ /dev/null @@ -1,273 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.FilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 7ab230f9e35..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java deleted file mode 100644 index 6d4a938a9c2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,336 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookFilter; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply.ApplyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottomitemsfilter.ApplyBottomItemsFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottompercentfilter.ApplyBottomPercentFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycellcolorfilter.ApplyCellColorFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycustomfilter.ApplyCustomFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applydynamicfilter.ApplyDynamicFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyfontcolorfilter.ApplyFontColorFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter.ApplyIconFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytopitemsfilter.ApplyTopItemsFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytoppercentfilter.ApplyTopPercentFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter.ApplyValuesFilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java deleted file mode 100644 index 095c5bde5db..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java deleted file mode 100644 index 3d62464a526..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.apply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java deleted file mode 100644 index ec9db068d49..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java deleted file mode 100644 index ed6aa3e8236..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottomitemsfilter/ApplyBottomItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottomitemsfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java deleted file mode 100644 index ff85b6b04a4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java deleted file mode 100644 index 0ae862d6c1a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applybottompercentfilter/ApplyBottomPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applybottompercentfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java deleted file mode 100644 index 608658dd9e1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java deleted file mode 100644 index 6ef317fdb7a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycellcolorfilter/ApplyCellColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycellcolorfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java deleted file mode 100644 index 52cca44bf38..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterPostRequestBody.java +++ /dev/null @@ -1,141 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java deleted file mode 100644 index ca85727429f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applycustomfilter/ApplyCustomFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applycustomfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java deleted file mode 100644 index d4644b93472..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java deleted file mode 100644 index cd510a4680f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applydynamicfilter/ApplyDynamicFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applydynamicfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java deleted file mode 100644 index c33791cce40..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java deleted file mode 100644 index 62482375fd2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyfontcolorfilter/ApplyFontColorFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyfontcolorfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java deleted file mode 100644 index 3c03a91b99c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java deleted file mode 100644 index 6227428fcfe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyiconfilter/ApplyIconFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyiconfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java deleted file mode 100644 index 9b783442475..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java deleted file mode 100644 index 21aac1adf79..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytopitemsfilter/ApplyTopItemsFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytopitemsfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java deleted file mode 100644 index 5c2614614cc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java deleted file mode 100644 index 52b4002073f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applytoppercentfilter/ApplyTopPercentFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applytoppercentfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java deleted file mode 100644 index dd60dbb5689..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ApplyValuesFilterPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link ApplyValuesFilterPostRequestBody} and sets the default values. - */ - public ApplyValuesFilterPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link ApplyValuesFilterPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static ApplyValuesFilterPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new ApplyValuesFilterPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java deleted file mode 100644 index be8896ce6fb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/applyvaluesfilter/ApplyValuesFilterRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.applyvaluesfilter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/ClearRequestBuilder.java deleted file mode 100644 index 99dbc3b9e7a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/filter/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.filter.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index b9712e7b0f2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/range/RangeRequestBuilder.java deleted file mode 100644 index e897ad94c28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index ef53a7c51e5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.item.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 25fd4dce3b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.filter.FilterRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index 1a1f78d3533..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java deleted file mode 100644 index cad3297d8dd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/filter/FilterRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.filter; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 9bf1df0cb16..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 5b7127d59e8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index ec29f2e1872..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/columns/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.columns.itematwithindex.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index 6b94dd6ae29..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.converttorange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index e60c9070420..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 9c08df057e4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java deleted file mode 100644 index 362ed46c09a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()", rawUrl); - } - /** - * Gets 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); - } - /** - * Gets 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); - } - /** - * Gets the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index 5927dd8e937..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.reapplyfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java deleted file mode 100644 index 569b7db93d0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.models.WorkbookTableRowCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add.AddRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item.WorkbookTableRowItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java deleted file mode 100644 index 4aa5b2bb2c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add; - -import com.microsoft.kiota.serialization.AdditionalDataHolder; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParseNode; -import com.microsoft.kiota.serialization.SerializationWriter; -import com.microsoft.kiota.serialization.UntypedNode; -import com.microsoft.kiota.store.BackedModel; -import com.microsoft.kiota.store.BackingStore; -import com.microsoft.kiota.store.BackingStoreFactorySingleton; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -@jakarta.annotation.Generated("com.microsoft.kiota") -public class AddPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link AddPostRequestBody} and sets the default values. - */ - public AddPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link AddPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static AddPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new AddPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(2); - deserializerMap.put("index", (n) -> { this.setIndex(n.getIntegerValue()); }); - deserializerMap.put("values", (n) -> { this.setValues(n.getObjectValue(UntypedNode::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the index property value. The index property - * @return a {@link Integer} - */ - @jakarta.annotation.Nullable - public Integer getIndex() { - return this.backingStore.get("index"); - } - /** - * Gets the values property value. The values property - * @return a {@link UntypedNode} - */ - @jakarta.annotation.Nullable - public UntypedNode getValues() { - return this.backingStore.get("values"); - } - /** - * Serializes information the current object - * @param writer Serialization writer to use to serialize this model - */ - public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { - Objects.requireNonNull(writer); - writer.writeIntegerValue("index", this.getIndex()); - writer.writeObjectValue("values", this.getValues()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the index property value. The index property - * @param value Value to set for the index property. - */ - public void setIndex(@jakarta.annotation.Nullable final Integer value) { - this.backingStore.set("index", value); - } - /** - * Sets the values property value. The values property - * @param value Value to set for the values property. - */ - public void setValues(@jakarta.annotation.Nullable final UntypedNode value) { - this.backingStore.set("values", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java deleted file mode 100644 index d634cb0984c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/add/AddRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.add; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java deleted file mode 100644 index cdf09e6c46a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java deleted file mode 100644 index 9dc5d55d7a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java deleted file mode 100644 index f7ec9354c8b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/WorkbookTableRowItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/range/RangeRequestBuilder.java deleted file mode 100644 index 302693a0a2a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/item/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.item.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", rawUrl); - } - /** - * Returns the range object associated with the entire row. - * @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 associated with the entire row. - * @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 associated with the entire row. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the range object associated with the entire row. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 9583d8a3108..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 4c76f9685c0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/rows/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.rows.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", rawUrl); - } - /** - * Returns the range object associated with the entire row. - * @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 associated with the entire row. - * @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 associated with the entire row. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Returns the range object associated with the entire row. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java deleted file mode 100644 index 182a801dd17..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/SortRequestBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.sort; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableSort; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply.ApplyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.clear.ClearRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java deleted file mode 100644 index 8a897191ec2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyPostRequestBody.java +++ /dev/null @@ -1,142 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java deleted file mode 100644 index 1fe9bf92e2b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/apply/ApplyRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.apply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java deleted file mode 100644 index a994f9b84a0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/clear/ClearRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.clear; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java deleted file mode 100644 index 72d2c36d14e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/sort/reapply/ReapplyRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.sort.reapply; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 7470986e473..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 33df5fcec80..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/item/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.item.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 819d5844efc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,197 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTable; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.clearfilters.ClearFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.converttorange.ConvertToRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.databodyrange.DataBodyRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.headerrowrange.HeaderRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.range.RangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.reapplyfilters.ReapplyFiltersRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.rows.RowsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.sort.SortRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.totalrowrange.TotalRowRangeRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java deleted file mode 100644 index 05c10959fad..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/clearfilters/ClearFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.clearfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java deleted file mode 100644 index 7838a57dc93..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.columns; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableColumn; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java deleted file mode 100644 index e57a0d215c3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/converttorange/ConvertToRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.converttorange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java deleted file mode 100644 index db991a874fc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/databodyrange/DataBodyRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.databodyrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java deleted file mode 100644 index 7318ee20233..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/headerrowrange/HeaderRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.headerrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java deleted file mode 100644 index 235a43d3930..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/range/RangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.range; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/range()", rawUrl); - } - /** - * Gets 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); - } - /** - * Gets 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); - } - /** - * Gets the range object associated with the entire table. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Gets 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java deleted file mode 100644 index 77fefbcbe5f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/reapplyfilters/ReapplyFiltersRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.reapplyfilters; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java deleted file mode 100644 index 059278b90a6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/rows/RowsRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.rows; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookTableRow; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java deleted file mode 100644 index 5afa9d3a663..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/sort/SortRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.sort; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java deleted file mode 100644 index 7d5511b73a3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/totalrowrange/TotalRowRangeRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.totalrowrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java deleted file mode 100644 index 10ce6f5826e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tables/itematwithindex/worksheet/WorksheetRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tables.itematwithindex.worksheet; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/TasksRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/TasksRequestBuilder.java deleted file mode 100644 index 106d5facb04..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/TasksRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.WorkbookDocumentTaskItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.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 tasks property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TasksRequestBuilder 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 tasks property of the microsoft.graph.workbookWorksheet entity. - * @param workbookDocumentTaskId The unique identifier of workbookDocumentTask - * @return a {@link WorkbookDocumentTaskItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskItemRequestBuilder byWorkbookDocumentTaskId(@jakarta.annotation.Nonnull final String workbookDocumentTaskId) { - Objects.requireNonNull(workbookDocumentTaskId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTask%2Did", workbookDocumentTaskId); - return new WorkbookDocumentTaskItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link TasksRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TasksRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link TasksRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TasksRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Collection of document tasks on this worksheet. Read-only. - * @return a {@link WorkbookDocumentTaskCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskCollectionResponse get() { - return get(null); - } - /** - * Collection of document tasks on this worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskCollectionResponse::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 tasks for storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask post(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return post(body, null); - } - /** - * Create new navigation property to tasks for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask post(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Collection of document tasks on this worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of document tasks on this 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 tasks for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to tasks 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TasksRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TasksRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TasksRequestBuilder(rawUrl, requestAdapter); - } - /** - * Collection of document tasks on this 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountGetResponse.java deleted file mode 100644 index 4488c336c0f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountRequestBuilder.java deleted file mode 100644 index 7457e928afe..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/WorkbookDocumentTaskItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/WorkbookDocumentTaskItemRequestBuilder.java deleted file mode 100644 index b4b5858254b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/WorkbookDocumentTaskItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.ChangesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.CommentRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the tasks property of the microsoft.graph.workbookWorksheet entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder comment() { - return new CommentRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property tasks for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property tasks 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 document tasks on this worksheet. Read-only. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * Collection of document tasks on this worksheet. Read-only. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property tasks in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property tasks in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property tasks for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property tasks 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 document tasks on this worksheet. Read-only. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Collection of document tasks on this 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 tasks in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property tasks 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskItemRequestBuilder(rawUrl, 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 document tasks on this 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/ChangesRequestBuilder.java deleted file mode 100644 index 239416f9b23..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountGetResponse.java deleted file mode 100644 index 4e4bee7d177..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountRequestBuilder.java deleted file mode 100644 index 1179ff6a583..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index 7a452ac735d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index bbe11eeca6d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/CommentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/CommentRequestBuilder.java deleted file mode 100644 index f0e2b12d473..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/CommentRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.RepliesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentRequestBuilder 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); - } - /** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comment for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * The comment that the task is associated with. - * @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 comment 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 comment 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 comment for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The comment that the task is associated with. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property comment 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 comment 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 CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentRequestBuilder(rawUrl, 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 comment that the task is associated with. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java deleted file mode 100644 index 422d9b32e73..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/RepliesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.models.WorkbookCommentReplyCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/count/CountRequestBuilder.java deleted file mode 100644 index c3df7ba9d2f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.count; - -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java deleted file mode 100644 index 305b54b4c88..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/WorkbookCommentReplyItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookCommentReply; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.TaskRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder task() { - return new TaskRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/TaskRequestBuilder.java deleted file mode 100644 index f4286f139b7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/TaskRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.ChangesRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookCommentReply entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment thread. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment thread. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment thread. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index 8873d452121..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountGetResponse.java deleted file mode 100644 index 21875b19d98..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index c61fda01fc1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index 0e1709a83b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index 91d2898f3dc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/replies/item/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.replies.item.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/replies/{workbookCommentReply%2Did}/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/TaskRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/TaskRequestBuilder.java deleted file mode 100644 index ad199a73683..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/TaskRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.ChangesRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the task property of the microsoft.graph.workbookComment entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class TaskRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link TaskRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public TaskRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property task for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * The task associated with the comment. Read-only. Nullable. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return patch(body, null); - } - /** - * Update the navigation property task in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask patch(@jakarta.annotation.Nonnull final WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::createFromDiscriminatorValue); - } - /** - * Delete navigation property task for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property task 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 task associated with the comment. Read-only. Nullable. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The task associated with the comment. 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 task in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTask body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property task 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 WorkbookDocumentTask body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link TaskRequestBuilder} - */ - @jakarta.annotation.Nonnull - public TaskRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new TaskRequestBuilder(rawUrl, 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 task associated with the comment. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/ChangesRequestBuilder.java deleted file mode 100644 index 23115dbc174..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.item.WorkbookDocumentTaskChangeItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.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 changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder 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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @param workbookDocumentTaskChangeId The unique identifier of workbookDocumentTaskChange - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder byWorkbookDocumentTaskChangeId(@jakarta.annotation.Nonnull final String workbookDocumentTaskChangeId) { - Objects.requireNonNull(workbookDocumentTaskChangeId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("workbookDocumentTaskChange%2Did", workbookDocumentTaskChangeId); - return new WorkbookDocumentTaskChangeItemRequestBuilder(urlTplParams, requestAdapter); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::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 changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountGetResponse.java deleted file mode 100644 index a611bc03650..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountRequestBuilder.java deleted file mode 100644 index 3127a2ba30c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/count/CountRequestBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.count; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java deleted file mode 100644 index a535058a53c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/item/WorkbookDocumentTaskChangeItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class WorkbookDocumentTaskChangeItemRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link WorkbookDocumentTaskChangeItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public WorkbookDocumentTaskChangeItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/{workbookDocumentTaskChange%2Did}{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property changes for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return patch(body, null); - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange patch(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * Delete navigation property changes for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property changes 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 task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property changes in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPatchRequestInformation(body, null); - } - /** - * Update the navigation property changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link WorkbookDocumentTaskChangeItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public WorkbookDocumentTaskChangeItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new WorkbookDocumentTaskChangeItemRequestBuilder(rawUrl, 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 task change histories. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index c60f8aa8280..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/item/comment/task/changes/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.item.comment.task.changes.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 { - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/{workbookDocumentTask%2Did}/comment/task/changes/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/ItemAtWithIndexRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/ItemAtWithIndexRequestBuilder.java deleted file mode 100644 index aeddf189cf3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/ItemAtWithIndexRequestBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTask; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex.changes.ChangesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex.comment.CommentRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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 changes property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder changes() { - return new ChangesRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - * @return a {@link CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder comment() { - return new CommentRequestBuilder(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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/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/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})", rawUrl); - } - /** - * Invoke function itemAt - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get() { - return get(null); - } - /** - * Invoke function itemAt - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTask} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTask get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTask::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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/changes/ChangesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/changes/ChangesRequestBuilder.java deleted file mode 100644 index e3b9b827f99..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/changes/ChangesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex.changes; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChange; -import com.microsoft.graph.beta.models.WorkbookDocumentTaskChangeCollectionResponse; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the changes property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ChangesRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ChangesRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ChangesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})/changes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * A collection of task change histories. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get() { - return get(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChangeCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChangeCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChangeCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return post(body, null); - } - /** - * Create new navigation property to changes for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link WorkbookDocumentTaskChange} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookDocumentTaskChange post(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, WorkbookDocumentTaskChange::createFromDiscriminatorValue); - } - /** - * A collection of task change histories. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * A collection of task change histories. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final 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 changes for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final WorkbookDocumentTaskChange body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to changes 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 WorkbookDocumentTaskChange body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ChangesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ChangesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ChangesRequestBuilder(rawUrl, requestAdapter); - } - /** - * A collection of task change histories. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/comment/CommentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/comment/CommentRequestBuilder.java deleted file mode 100644 index a77f899fb55..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/tasks/itematwithindex/comment/CommentRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.tasks.itematwithindex.comment; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.WorkbookComment; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to manage the comment property of the microsoft.graph.workbookDocumentTask entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class CommentRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})/comment{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link CommentRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public CommentRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tasks/itemAt(index={index})/comment{?%24expand,%24select}", rawUrl); - } - /** - * Delete navigation property comment for storage - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link WorkbookComment} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public WorkbookComment get() { - return get(null); - } - /** - * The comment that the task is associated with. - * @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 comment 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 comment 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 comment for storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * Delete navigation property comment 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 comment that the task is associated with. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The comment that the task is associated with. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Update the navigation property comment 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 comment 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 CommentRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CommentRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CommentRequestBuilder(rawUrl, 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 comment that the task is associated with. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PatchRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java deleted file mode 100644 index a2edef8e334..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/usedrange/UsedRangeRequestBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.usedrange; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java deleted file mode 100644 index 53d1f3e0376..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/items/item/workbook/worksheets/item/usedrangewithvaluesonly/UsedRangeWithValuesOnlyRequestBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.items.item.workbook.worksheets.item.usedrangewithvaluesonly; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 06ac63aa948..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from storage - * @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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 007c162ea89..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index dccdcfd7b90..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 84672d56e8a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.lastmodifiedbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/ListRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/ListRequestBuilder.java deleted file mode 100644 index 708d295e4bc..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/ListRequestBuilder.java +++ /dev/null @@ -1,318 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list; - -import com.microsoft.graph.beta.models.List; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.activities.ActivitiesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.ContentTypesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.drive.DriveRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.ItemsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.operations.OperationsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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 activities property of the microsoft.graph.list entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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 permissions property of the microsoft.graph.list entity. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder permissions() { - return new PermissionsRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index f8c14bff0c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.activities; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.ItemActivityOLDCollectionResponse; -import com.microsoft.graph.beta.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 activities property of the microsoft.graph.list entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ActivitiesRequestBuilder extends BaseRequestBuilder { - /** - * 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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/deletedContainers/{fileStorageContainer%2Did}/drive/list/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The recent activities that took place within this list. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get() { - return get(null); - } - /** - * The recent activities that took place within this list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLDCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * The recent activities that took place within this list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The recent activities that took place within 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 activities for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this 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); - } - /** - * The recent activities that took place within 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/ColumnsRequestBuilder.java deleted file mode 100644 index cecd06bf0b3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.columns; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.columns.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/count/CountRequestBuilder.java deleted file mode 100644 index be3fd430428..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.columns.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index 02b603df78c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.columns.item; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java deleted file mode 100644 index 3ec1a0d6e0f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/columns/item/sourcecolumn/SourceColumnRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.columns.item.sourcecolumn; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl); - } - /** - * The source column for 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 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 content type column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The source column for 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 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java deleted file mode 100644 index de2cccb58f5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/ContentTypesRequestBuilder.java +++ /dev/null @@ -1,270 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.ContentTypeCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.addcopy.AddCopyRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.addcopyfromcontenttypehub.AddCopyFromContentTypeHubRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.getcompatiblehubcontenttypes.GetCompatibleHubContentTypesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java deleted file mode 100644 index 3ced859c98e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopy/AddCopyPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java deleted file mode 100644 index 3b9e42f0749..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopy/AddCopyRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.addcopy; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/contentTypes/addCopy", rawUrl); - } - /** - * Invoke action addCopy - * @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); - } - /** - * Invoke action addCopy - * @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); - } - /** - * Invoke action addCopy - * @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); - } - /** - * Invoke action addCopy - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java deleted file mode 100644 index 15d5e36ef27..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubPostRequestBody.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java deleted file mode 100644 index ac663434ace..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/addcopyfromcontenttypehub/AddCopyFromContentTypeHubRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.addcopyfromcontenttypehub; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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 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 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 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 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/count/CountRequestBuilder.java deleted file mode 100644 index 2b0db0ce211..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java deleted file mode 100644 index f731f42bd1e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.getcompatiblehubcontenttypes; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java deleted file mode 100644 index f4e452a800b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/getcompatiblehubcontenttypes/GetCompatibleHubContentTypesRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.getcompatiblehubcontenttypes; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Get compatible content types in 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 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 compatible content types in 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 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 compatible content types in 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 addCopyFromContentTypeHub and the blog post Syntex Product Updates August 2021. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get compatible content types in 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 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 compatible content types in 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 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java deleted file mode 100644 index 9d09c90f5d2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ContentTypeItemRequestBuilder.java +++ /dev/null @@ -1,318 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.associatewithhubsites.AssociateWithHubSitesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.base.BaseRequestBuilderEscaped; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.basetypes.BaseTypesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnlinks.ColumnLinksRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnpositions.ColumnPositionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columns.ColumnsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.copytodefaultcontentlocation.CopyToDefaultContentLocationRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.ispublished.IsPublishedRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.publish.PublishRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java deleted file mode 100644 index 7665f20748d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesPostRequestBody.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java deleted file mode 100644 index 91c5c954a27..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/associatewithhubsites/AssociateWithHubSitesRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.associatewithhubsites; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/associateWithHubSites", rawUrl); - } - /** - * Invoke action associateWithHubSites - * @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); - } - /** - * Invoke action associateWithHubSites - * @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); - } - /** - * Invoke action associateWithHubSites - * @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); - } - /** - * Invoke action associateWithHubSites - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java deleted file mode 100644 index b73fb20a974..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/base/BaseRequestBuilderEscaped.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.base; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java deleted file mode 100644 index 3459a06aa73..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/BaseTypesRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.basetypes; - -import com.microsoft.graph.beta.models.ContentTypeCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.basetypes.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java deleted file mode 100644 index 6b0be976d28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.basetypes.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java deleted file mode 100644 index 207e30ee73a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/basetypes/item/ContentTypeItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.basetypes.item; - -import com.microsoft.graph.beta.models.ContentType; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java deleted file mode 100644 index 5cc21f75ef0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/ColumnLinksRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnlinks; - -import com.microsoft.graph.beta.models.ColumnLink; -import com.microsoft.graph.beta.models.ColumnLinkCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnlinks.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java deleted file mode 100644 index 170b8be8b0a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnlinks.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java deleted file mode 100644 index 815e1388502..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnlinks/item/ColumnLinkItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnlinks.item; - -import com.microsoft.graph.beta.models.ColumnLink; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java deleted file mode 100644 index 3ac9247d955..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/ColumnPositionsRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnpositions; - -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnpositions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java deleted file mode 100644 index e25ebe440c0..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnpositions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index db1752bf93b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columnpositions/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columnpositions.item; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java deleted file mode 100644 index f0d28ab6764..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/ColumnsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columns; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.ColumnDefinitionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columns.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java deleted file mode 100644 index 07719f5cf6b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columns.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java deleted file mode 100644 index 1fc7c7a8431..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/item/ColumnDefinitionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columns.item; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java deleted file mode 100644 index c6336cbf3bb..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/columns/item/sourcecolumn/SourceColumnRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.columns.item.sourcecolumn; - -import com.microsoft.graph.beta.models.ColumnDefinition; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", rawUrl); - } - /** - * The source column for 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 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 content type column. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The source column for 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 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java deleted file mode 100644 index 0cfb86c2852..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.copytodefaultcontentlocation; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java deleted file mode 100644 index f1ba0e120d2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/copytodefaultcontentlocation/CopyToDefaultContentLocationRequestBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.copytodefaultcontentlocation; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", rawUrl); - } - /** - * Invoke action copyToDefaultContentLocation - * @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); - } - /** - * Invoke action copyToDefaultContentLocation - * @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); - } - /** - * Invoke action copyToDefaultContentLocation - * @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); - } - /** - * Invoke action copyToDefaultContentLocation - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java deleted file mode 100644 index 200dcc9243a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ispublished/IsPublishedGetResponse.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java deleted file mode 100644 index 687e0ddeb5f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/ispublished/IsPublishedRequestBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.ispublished; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/isPublished()", rawUrl); - } - /** - * Invoke function isPublished - * @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); - } - /** - * Invoke function isPublished - * @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); - } - /** - * Invoke function isPublished - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Invoke function isPublished - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java deleted file mode 100644 index d6738ad2fcd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/publish/PublishRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.publish; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/publish", rawUrl); - } - /** - * Invoke action publish - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Invoke action publish - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); - } - /** - * Invoke action publish - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action publish - * @param requestConfiguration 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java deleted file mode 100644 index 9f4eeacc8b9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/contenttypes/item/unpublish/UnpublishRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.contenttypes.item.unpublish; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/unpublish", rawUrl); - } - /** - * Invoke action unpublish - * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here - */ - public void post() { - post(null); - } - /** - * Invoke action unpublish - * @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); - } - /** - * Invoke action unpublish - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action unpublish - * @param requestConfiguration 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index a0386ec1b99..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get createdByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from storage - * @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); - } - /** - * Get createdByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index f84c02c0335..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.createdbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index d760a49d977..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index c5956e31074..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.createdbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/drive/DriveRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/drive/DriveRequestBuilder.java deleted file mode 100644 index 2a507db1d05..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/drive/DriveRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.drive; - -import com.microsoft.graph.beta.models.Drive; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/ItemsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/ItemsRequestBuilder.java deleted file mode 100644 index a4a0308fa11..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/ItemsRequestBuilder.java +++ /dev/null @@ -1,254 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.models.ListItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.delta.DeltaRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.deltawithtoken.DeltaWithTokenRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters); - } - /** - * Instantiates a new {@link ItemsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Provides operations to call the delta method. - * @param token Usage: token='{token}' - * @return a {@link DeltaWithTokenRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DeltaWithTokenRequestBuilder deltaWithToken(@jakarta.annotation.Nonnull final String token) { - Objects.requireNonNull(token); - return new DeltaWithTokenRequestBuilder(pathParameters, requestAdapter, token); - } - /** - * All items contained in the list. - * @return a {@link ListItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemCollectionResponse get() { - return get(null); - } - /** - * All items contained in the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItemCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItemCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItemCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem post(@jakarta.annotation.Nonnull final ListItem body) { - return post(body, null); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem post(@jakarta.annotation.Nonnull final ListItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ListItem::createFromDiscriminatorValue); - } - /** - * All items contained in the list. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * All items contained in the list. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ListItem body) { - return toPostRequestInformation(body, null); - } - /** - * Create new navigation property to items for storage - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ListItem body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ItemsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemsRequestBuilder(rawUrl, requestAdapter); - } - /** - * All items contained in the list. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetQueryParameters implements QueryParameters { - /** - * Include count of items - */ - @jakarta.annotation.Nullable - public Boolean count; - /** - * Expand related entities - */ - @jakarta.annotation.Nullable - public String[] expand; - /** - * Filter items by property values - */ - @jakarta.annotation.Nullable - public String filter; - /** - * Order items by property values - */ - @jakarta.annotation.Nullable - public String[] orderby; - /** - * Search items by search phrases - */ - @jakarta.annotation.Nullable - public String search; - /** - * Select properties to be returned - */ - @jakarta.annotation.Nullable - public String[] select; - /** - * Skip the first n items - */ - @jakarta.annotation.Nullable - public Integer skip; - /** - * Show only the first n items - */ - @jakarta.annotation.Nullable - public Integer top; - /** - * Extracts the query parameters into a map for the URI template parsing. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map toQueryParameters() { - final Map allQueryParams = new HashMap(); - allQueryParams.put("%24count", count); - allQueryParams.put("%24filter", filter); - allQueryParams.put("%24search", search); - allQueryParams.put("%24skip", skip); - allQueryParams.put("%24top", top); - allQueryParams.put("%24expand", expand); - allQueryParams.put("%24orderby", orderby); - allQueryParams.put("%24select", select); - return allQueryParams; - } - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class GetRequestConfiguration extends BaseRequestConfiguration { - /** - * Request query parameters - */ - @jakarta.annotation.Nullable - public GetQueryParameters queryParameters = new GetQueryParameters(); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/delta/DeltaGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/delta/DeltaGetResponse.java deleted file mode 100644 index 595f73a8024..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/delta/DeltaGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.delta; - -import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/delta/DeltaRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/delta/DeltaRequestBuilder.java deleted file mode 100644 index 5d482e89612..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/delta/DeltaRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.delta; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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. Deleted items are returned with the deleted facet. Deleted indicates that the item is deleted and can't be restored.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java deleted file mode 100644 index 769c4fa0407..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/deltawithtoken/DeltaWithTokenGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.deltawithtoken; - -import com.microsoft.graph.beta.models.BaseDeltaFunctionResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java deleted file mode 100644 index eec6f52a3d5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/deltawithtoken/DeltaWithTokenRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.deltawithtoken; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/ListItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/ListItemItemRequestBuilder.java deleted file mode 100644 index 88be770b07b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/ListItemItemRequestBuilder.java +++ /dev/null @@ -1,333 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.ActivitiesRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.analytics.AnalyticsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createdbyuser.CreatedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createlink.CreateLinkRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.documentsetversions.DocumentSetVersionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.driveitem.DriveItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval.GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.lastmodifiedbyuser.LastModifiedByUserRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.PermissionsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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 activities property of the microsoft.graph.listItem entity. - * @return a {@link ActivitiesRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ActivitiesRequestBuilder activities() { - return new ActivitiesRequestBuilder(pathParameters, requestAdapter); - } - /** - * 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 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 permissions property of the microsoft.graph.listItem entity. - * @return a {@link PermissionsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public PermissionsRequestBuilder permissions() { - return new PermissionsRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/ActivitiesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/ActivitiesRequestBuilder.java deleted file mode 100644 index 7addd9118f8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/ActivitiesRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.ItemActivityOLDCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.ItemActivityOLDItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.listItem 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.listItem entity. - * @param itemActivityOLDId The unique identifier of itemActivityOLD - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder byItemActivityOLDId(@jakarta.annotation.Nonnull final String itemActivityOLDId) { - Objects.requireNonNull(itemActivityOLDId); - final HashMap urlTplParams = new HashMap(this.pathParameters); - urlTplParams.put("itemActivityOLD%2Did", itemActivityOLDId); - return new ItemActivityOLDItemRequestBuilder(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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get() { - return get(null); - } - /** - * The list of recent activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLDCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLDCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLDCollectionResponse::createFromDiscriminatorValue); - } - /** - * Create new navigation property to activities for storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD post(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPostRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent 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; - } - /** - * 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 ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this 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); - } - /** - * The list of recent activities that took place on this 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/count/CountRequestBuilder.java deleted file mode 100644 index d1dc1a22e7b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.count; - -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java deleted file mode 100644 index 3e342e7cc63..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/ItemActivityOLDItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item; - -import com.microsoft.graph.beta.models.ItemActivityOLD; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.driveitem.DriveItemRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.listitem.ListItemRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.listItem entity. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class ItemActivityOLDItemRequestBuilder extends BaseRequestBuilder { - /** - * Provides operations to manage the driveItem property of the microsoft.graph.itemActivityOLD entity. - * @return a {@link DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder driveItem() { - return new DriveItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Provides operations to manage the listItem property of the microsoft.graph.itemActivityOLD entity. - * @return a {@link ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder listItem() { - return new ListItemRequestBuilder(pathParameters, requestAdapter); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}{?%24expand,%24select}", pathParameters); - } - /** - * Instantiates a new {@link ItemActivityOLDItemRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ItemActivityOLDItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%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); - } - /** - * The list of recent activities that took place on this item. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get() { - return get(null); - } - /** - * The list of recent activities that took place on this item. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::createFromDiscriminatorValue); - } - /** - * Update the navigation property activities in storage - * @param body The request body - * @return a {@link ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD patch(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ItemActivityOLD patch(@jakarta.annotation.Nonnull final ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ItemActivityOLD::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; - } - /** - * The list of recent activities that took place on this item. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The list of recent 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 activities in storage - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final ItemActivityOLD 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 ItemActivityOLD body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ItemActivityOLDItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ItemActivityOLDItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ItemActivityOLDItemRequestBuilder(rawUrl, 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 recent 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index 1a1166f074f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.driveitem; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.driveitem.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.driveitem.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.itemActivityOLD 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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem{?%24expand,%24select}", rawUrl); - } - /** - * Get driveItem from storage - * @return a {@link DriveItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public DriveItem get() { - return get(null); - } - /** - * Get driveItem from storage - * @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); - } - /** - * Get driveItem from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get driveItem 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 DriveItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public DriveItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new DriveItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get driveItem 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 746382b6562..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.driveitem.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index def4df1deea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/driveitem/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.driveitem.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/driveItem/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/listitem/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/listitem/ListItemRequestBuilder.java deleted file mode 100644 index e4b96dc86ee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/activities/item/listitem/ListItemRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.activities.item.listitem; - -import com.microsoft.graph.beta.models.ListItem; -import com.microsoft.graph.beta.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.itemActivityOLD 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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/activities/{itemActivityOLD%2Did}/listItem{?%24expand,%24select}", rawUrl); - } - /** - * Get listItem from storage - * @return a {@link ListItem} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ListItem get() { - return get(null); - } - /** - * Get listItem from storage - * @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); - } - /** - * Get listItem from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get listItem 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 ListItemRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ListItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ListItemRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get listItem 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java deleted file mode 100644 index c5bccf17118..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/analytics/AnalyticsRequestBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.analytics; - -import com.microsoft.graph.beta.models.ItemAnalytics; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java deleted file mode 100644 index 6d26e292fe5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/CreatedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createdbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createdbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get createdByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get createdByUser from storage - * @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); - } - /** - * Get createdByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get createdByUser 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 CreatedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public CreatedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new CreatedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get createdByUser 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 267ef8a1dee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createdbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 38af3b39090..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index c908d02e80d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createdbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createdbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java deleted file mode 100644 index 8de67dbe126..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createlink/CreateLinkPostRequestBody.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createlink; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java deleted file mode 100644 index 7437e739dee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/createlink/CreateLinkRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.createlink; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createLink", rawUrl); - } - /** - * Create a sharing link for a listItem. The createLink action creates 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. - * @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); - } - /** - * Create a sharing link for a listItem. The createLink action creates 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. - * @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); - } - /** - * Create a sharing link for a listItem. The createLink action creates 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. - * @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); - } - /** - * Create a sharing link for a listItem. The createLink action creates 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, this action returns the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in. - * @param body The request body - * @param requestConfiguration Configuration for 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java deleted file mode 100644 index c6b0acb85c2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/DocumentSetVersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.documentsetversions; - -import com.microsoft.graph.beta.models.DocumentSetVersion; -import com.microsoft.graph.beta.models.DocumentSetVersionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.documentsetversions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java deleted file mode 100644 index 091256d6e84..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.documentsetversions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java deleted file mode 100644 index 0667bada172..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/DocumentSetVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.documentsetversions.item; - -import com.microsoft.graph.beta.models.DocumentSetVersion; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.documentsetversions.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index 95a1cfa6a6b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.documentsetversions.item.fields; - -import com.microsoft.graph.beta.models.FieldValueSet; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java deleted file mode 100644 index 9088fd3e720..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/documentsetversions/item/restore/RestoreRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.documentsetversions.item.restore; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java deleted file mode 100644 index 3ceca8bcfa9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/DriveItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.driveitem; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.driveitem.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.driveitem.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java deleted file mode 100644 index 70dd58c0c92..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.driveitem.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index 535cf49c856..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/driveitem/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.driveitem.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index cd2f4dc01a8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.fields; - -import com.microsoft.graph.beta.models.FieldValueSet; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java deleted file mode 100644 index 35cc1115a2c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java deleted file mode 100644 index 08904df0c52..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval/GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.getactivitiesbyintervalwithstartdatetimewithenddatetimewithinterval; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index d70c46e65b1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from storage - * @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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index a00f55d1629..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index f8f42d7f80a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 9caee99234d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.lastmodifiedbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index 7ae169c804d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.models.PermissionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.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.listItem 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.listItem 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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/count/CountRequestBuilder.java deleted file mode 100644 index ce2b8e57914..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/PermissionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/PermissionItemRequestBuilder.java deleted file mode 100644 index 033e496e201..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/PermissionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.item.grant.GrantRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.item.revokegrants.RevokeGrantsRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.listItem 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); - } - /** - * Provides operations to call the revokeGrants method. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder revokeGrants() { - return new RevokeGrantsRequestBuilder(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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantPostRequestBody.java deleted file mode 100644 index 18fe8553453..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantPostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantPostResponse.java deleted file mode 100644 index 27a933cc13a..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantPostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantRequestBuilder.java deleted file mode 100644 index 0be5eb5f6a1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/grant/GrantRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.item.grant; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java deleted file mode 100644 index 0efa4e25cd5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.item.revokegrants; - -import com.microsoft.graph.beta.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 RevokeGrantsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RevokeGrantsPostRequestBody} and sets the default values. - */ - public RevokeGrantsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RevokeGrantsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RevokeGrantsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RevokeGrantsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("grantees", (n) -> { this.setGrantees(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the grantees property value. The grantees property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getGrantees() { - return this.backingStore.get("grantees"); - } - /** - * Serializes information the current 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("grantees", this.getGrantees()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the grantees property value. The grantees property - * @param value Value to set for the grantees property. - */ - public void setGrantees(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("grantees", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java deleted file mode 100644 index 02cddd266e3..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.permissions.item.revokegrants; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 revokeGrants method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RevokeGrantsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/permissions/{permission%2Did}/revokeGrants", pathParameters); - } - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/permissions/{permission%2Did}/revokeGrants", rawUrl); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body) { - return post(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.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); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RevokeGrantsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the 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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RevokeGrantsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/VersionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/VersionsRequestBuilder.java deleted file mode 100644 index ad93028c27c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/VersionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.versions; - -import com.microsoft.graph.beta.models.ListItemVersion; -import com.microsoft.graph.beta.models.ListItemVersionCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.versions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/count/CountRequestBuilder.java deleted file mode 100644 index d2aec296326..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.versions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java deleted file mode 100644 index eb49f04588d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/ListItemVersionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.versions.item; - -import com.microsoft.graph.beta.models.ListItemVersion; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.versions.item.fields.FieldsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java deleted file mode 100644 index bd200830dfd..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/fields/FieldsRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.versions.item.fields; - -import com.microsoft.graph.beta.models.FieldValueSet; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java deleted file mode 100644 index 3b5f7550687..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/items/item/versions/item/restoreversion/RestoreVersionRequestBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.items.item.versions.item.restoreversion; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", rawUrl); - } - /** - * Invoke action restoreVersion - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void post() { - post(null); - } - /** - * Invoke action restoreVersion - * @param requestConfiguration 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 restoreVersion - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); - } - /** - * Invoke action restoreVersion - * @param requestConfiguration 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java deleted file mode 100644 index 98a0faab148..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/LastModifiedByUserRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.lastmodifiedbyuser; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.User; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.lastmodifiedbyuser.mailboxsettings.MailboxSettingsRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser{?%24expand,%24select}", rawUrl); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link User} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public User get() { - return get(null); - } - /** - * Get lastModifiedByUser from storage - * @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); - } - /** - * Get lastModifiedByUser from storage - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get lastModifiedByUser 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 LastModifiedByUserRequestBuilder} - */ - @jakarta.annotation.Nonnull - public LastModifiedByUserRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new LastModifiedByUserRequestBuilder(rawUrl, requestAdapter); - } - /** - * Get lastModifiedByUser 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java deleted file mode 100644 index 9ea9cc3b123..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/mailboxsettings/MailboxSettingsRequestBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.lastmodifiedbyuser.mailboxsettings; - -import com.microsoft.graph.beta.models.MailboxSettings; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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. For more information, see User preferences for languages and regional formats. 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java deleted file mode 100644 index 1fd1721fb72..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/ServiceProvisioningErrorsRequestBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ServiceProvisioningErrorCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get() { - return get(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ServiceProvisioningErrorCollectionResponse} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public ServiceProvisioningErrorCollectionResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.send(requestInfo, errorMapping, ServiceProvisioningErrorCollectionResponse::createFromDiscriminatorValue); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); - requestInfo.headers.tryAdd("Accept", "application/json"); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link ServiceProvisioningErrorsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ServiceProvisioningErrorsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ServiceProvisioningErrorsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java deleted file mode 100644 index 3c168da65f5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/lastmodifiedbyuser/serviceprovisioningerrors/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.lastmodifiedbyuser.serviceprovisioningerrors.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/OperationsRequestBuilder.java deleted file mode 100644 index 6957d3f4b47..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/OperationsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.operations; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.RichLongRunningOperation; -import com.microsoft.graph.beta.models.RichLongRunningOperationCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.operations.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/count/CountRequestBuilder.java deleted file mode 100644 index f8bc3078c28..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.operations.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java deleted file mode 100644 index fda743c400c..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/operations/item/RichLongRunningOperationItemRequestBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.operations.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/PermissionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/PermissionsRequestBuilder.java deleted file mode 100644 index bc1f86b0bc9..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/PermissionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.models.PermissionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.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.list 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.list 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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/count/CountRequestBuilder.java deleted file mode 100644 index ec20b6bccee..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/PermissionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/PermissionItemRequestBuilder.java deleted file mode 100644 index 19b28120119..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/PermissionItemRequestBuilder.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Permission; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.item.grant.GrantRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.item.revokegrants.RevokeGrantsRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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.list 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); - } - /** - * Provides operations to call the revokeGrants method. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder revokeGrants() { - return new RevokeGrantsRequestBuilder(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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantPostRequestBody.java deleted file mode 100644 index 87be915a4b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantPostRequestBody.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.item.grant; - -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantPostResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantPostResponse.java deleted file mode 100644 index 0e95e6090ce..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantPostResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.item.grant; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantRequestBuilder.java deleted file mode 100644 index be81ef2f83e..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/grant/GrantRequestBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.item.grant; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/deletedContainers/{fileStorageContainer%2Did}/drive/list/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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java deleted file mode 100644 index f9e4cd56421..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/revokegrants/RevokeGrantsPostRequestBody.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.item.revokegrants; - -import com.microsoft.graph.beta.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 RevokeGrantsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { - /** - * Stores model information. - */ - @jakarta.annotation.Nonnull - protected BackingStore backingStore; - /** - * Instantiates a new {@link RevokeGrantsPostRequestBody} and sets the default values. - */ - public RevokeGrantsPostRequestBody() { - this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); - this.setAdditionalData(new HashMap<>()); - } - /** - * Creates a new instance of the appropriate class based on discriminator value - * @param parseNode The parse node to use to read the discriminator value and create the object - * @return a {@link RevokeGrantsPostRequestBody} - */ - @jakarta.annotation.Nonnull - public static RevokeGrantsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { - Objects.requireNonNull(parseNode); - return new RevokeGrantsPostRequestBody(); - } - /** - * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @return a {@link Map} - */ - @jakarta.annotation.Nonnull - public Map getAdditionalData() { - Map value = this.backingStore.get("additionalData"); - if(value == null) { - value = new HashMap<>(); - this.setAdditionalData(value); - } - return value; - } - /** - * Gets the backingStore property value. Stores model information. - * @return a {@link BackingStore} - */ - @jakarta.annotation.Nonnull - public BackingStore getBackingStore() { - return this.backingStore; - } - /** - * The deserialization information for the current model - * @return a {@link Map>} - */ - @jakarta.annotation.Nonnull - public Map> getFieldDeserializers() { - final HashMap> deserializerMap = new HashMap>(1); - deserializerMap.put("grantees", (n) -> { this.setGrantees(n.getCollectionOfObjectValues(DriveRecipient::createFromDiscriminatorValue)); }); - return deserializerMap; - } - /** - * Gets the grantees property value. The grantees property - * @return a {@link java.util.List} - */ - @jakarta.annotation.Nullable - public java.util.List getGrantees() { - return this.backingStore.get("grantees"); - } - /** - * Serializes information the current 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("grantees", this.getGrantees()); - writer.writeAdditionalData(this.getAdditionalData()); - } - /** - * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - * @param value Value to set for the AdditionalData property. - */ - public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { - this.backingStore.set("additionalData", value); - } - /** - * Sets the backingStore property value. Stores model information. - * @param value Value to set for the backingStore property. - */ - public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { - Objects.requireNonNull(value); - this.backingStore = value; - } - /** - * Sets the grantees property value. The grantees property - * @param value Value to set for the grantees property. - */ - public void setGrantees(@jakarta.annotation.Nullable final java.util.List value) { - this.backingStore.set("grantees", value); - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java deleted file mode 100644 index fdbdc5d44cf..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/permissions/item/revokegrants/RevokeGrantsRequestBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.permissions.item.revokegrants; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.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 revokeGrants method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class RevokeGrantsRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/permissions/{permission%2Did}/revokeGrants", pathParameters); - } - /** - * Instantiates a new {@link RevokeGrantsRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public RevokeGrantsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/list/permissions/{permission%2Did}/revokeGrants", rawUrl); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body) { - return post(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.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); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the link. - * @param body The request body - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RevokeGrantsPostRequestBody body) { - return toPostRequestInformation(body, null); - } - /** - * Revoke access to a listItem or driveItem granted via a sharing link by removing the specified recipient from the 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 RevokeGrantsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - Objects.requireNonNull(body); - final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); - requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(requestAdapter, "application/json", body); - return requestInfo; - } - /** - * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param rawUrl The raw URL to use for the request builder. - * @return a {@link RevokeGrantsRequestBuilder} - */ - @jakarta.annotation.Nonnull - public RevokeGrantsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new RevokeGrantsRequestBuilder(rawUrl, requestAdapter); - } - /** - * Configuration for the request such as headers, query parameters, and middleware options. - */ - @jakarta.annotation.Generated("com.microsoft.kiota") - public class PostRequestConfiguration extends BaseRequestConfiguration { - } -} diff --git a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java deleted file mode 100644 index b9f6eb630ca..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/SubscriptionsRequestBuilder.java +++ /dev/null @@ -1,243 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.subscriptions; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Subscription; -import com.microsoft.graph.beta.models.SubscriptionCollectionResponse; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.subscriptions.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/count/CountRequestBuilder.java deleted file mode 100644 index f31c932f8b7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.subscriptions.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java deleted file mode 100644 index 605f2bf4fa2..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/item/SubscriptionItemRequestBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.subscriptions.item; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.Subscription; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java deleted file mode 100644 index 75f15728774..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/list/subscriptions/item/reauthorize/ReauthorizeRequestBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.list.subscriptions.item.reauthorize; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/recent/RecentGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/recent/RecentGetResponse.java deleted file mode 100644 index 0a71c6033b8..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/recent/RecentGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.recent; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/recent/RecentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/recent/RecentRequestBuilder.java deleted file mode 100644 index c31a9afec69..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/recent/RecentRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.recent; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/recent(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); - } - /** - * List a set of items 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 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 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 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 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/RootRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/RootRequestBuilder.java deleted file mode 100644 index ba20ec3cd92..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/RootRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.root; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.root.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.root.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/content/ContentRequestBuilder.java deleted file mode 100644 index 94cf9f181e6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.root.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/root/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index b2471c04a78..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/root/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.root.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/root/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/root/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/searchwithq/SearchWithQGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/searchwithq/SearchWithQGetResponse.java deleted file mode 100644 index 0f0614bc2f7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/searchwithq/SearchWithQGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.searchwithq; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/searchwithq/SearchWithQRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/searchwithq/SearchWithQRequestBuilder.java deleted file mode 100644 index 5795fe133b6..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/searchwithq/SearchWithQRequestBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.searchwithq; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/sharedwithme/SharedWithMeGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/sharedwithme/SharedWithMeGetResponse.java deleted file mode 100644 index ceebb353f9b..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/sharedwithme/SharedWithMeGetResponse.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.sharedwithme; - -import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; -import com.microsoft.graph.beta.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/beta/generated/storage/filestorage/deletedcontainers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java deleted file mode 100644 index 23cb03cf4e4..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/sharedwithme/SharedWithMeRequestBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.sharedwithme; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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're 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're 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're 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're 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're 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/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/SpecialRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/SpecialRequestBuilder.java deleted file mode 100644 index f249e08b41d..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/SpecialRequestBuilder.java +++ /dev/null @@ -1,187 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special; - -import com.microsoft.graph.beta.models.DriveItemCollectionResponse; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special.count.CountRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/count/CountRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/count/CountRequestBuilder.java deleted file mode 100644 index b5f550b91ea..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/count/CountRequestBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special.count; - -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/DriveItemItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/DriveItemItemRequestBuilder.java deleted file mode 100644 index 67d4cced6c1..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/DriveItemItemRequestBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special.item; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special.item.content.ContentRequestBuilder; -import com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special.item.contentstream.ContentStreamRequestBuilder; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.QueryParameters; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.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); - } - /** - * Provides operations to manage the media for the storage entity. - * @return a {@link ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder contentStream() { - return new ContentStreamRequestBuilder(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/deletedContainers/{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/deletedContainers/{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/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/content/ContentRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/content/ContentRequestBuilder.java deleted file mode 100644 index 9bd3e57cee5..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/content/ContentRequestBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special.item.content; - -import com.microsoft.graph.beta.models.DriveItem; -import com.microsoft.graph.beta.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/deletedContainers/{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/deletedContainers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}/content{?%24format*}", rawUrl); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete() { - delete(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @throws ODataError When receiving a 4XX or 5XX status code - */ - public void delete(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation() { - return toDeleteRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * The content stream, if the item represents a file. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - */ - @jakarta.annotation.Nonnull - public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - * @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. The content property will have a potentially breaking change in behavior in the future. It will stream content directly instead of redirecting. To proactively opt in to the new behavior ahead of time, use the contentStream property instead. - */ - @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/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/contentstream/ContentStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/contentstream/ContentStreamRequestBuilder.java deleted file mode 100644 index d9f177d283f..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/storage/filestorage/deletedcontainers/item/drive/special/item/contentstream/ContentStreamRequestBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -package com.microsoft.graph.beta.storage.filestorage.deletedcontainers.item.drive.special.item.contentstream; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -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 ContentStreamRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}/contentStream", pathParameters); - } - /** - * Instantiates a new {@link ContentStreamRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public ContentStreamRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}/contentStream", 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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 InputStream} - * @throws ODataError When receiving a 4XX or 5XX status code - */ - @jakarta.annotation.Nullable - public InputStream 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.sendPrimitive(requestInfo, errorMapping, InputStream.class); - } - /** - * 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); - 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 ContentStreamRequestBuilder} - */ - @jakarta.annotation.Nonnull - public ContentStreamRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new ContentStreamRequestBuilder(rawUrl, 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/beta/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java index 2715d51d5a7..3ae5ccb0c26 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/teams/item/channels/item/messages/MessagesRequestBuilder.java @@ -93,23 +93,23 @@ public ChatMessageCollectionResponse get(@jakarta.annotation.Nullable final java return this.requestAdapter.send(requestInfo, errorMapping, ChatMessageCollectionResponse::createFromDiscriminatorValue); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified channel. * @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 channel. * @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 channel. * @param body The request body * @return a {@link RequestInformation} */ @@ -149,7 +149,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Send a new chatMessage in the specified channel or a chat. + * Send a new chatMessage in the specified 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/beta/generated/tenantrelationships/multitenantorganization/MultiTenantOrganizationRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/tenantrelationships/multitenantorganization/MultiTenantOrganizationRequestBuilder.java index 2bfd9cbbefa..87467d94fbc 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/tenantrelationships/multitenantorganization/MultiTenantOrganizationRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/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); } /** - * Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. + * Update the properties of a multi-tenant 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 patch(@jakarta.annotation.Nonnull final MultiTenantOrganization body) { return patch(body, null); } /** - * Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. + * Update the properties of a multi-tenant 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 patch(@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; } /** - * Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. + * Update the properties of a multi-tenant organization. * @param body The request body * @return a {@link RequestInformation} */ @@ -135,7 +135,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. + * Update the properties of a multi-tenant 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/beta/generated/users/item/UserItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/UserItemRequestBuilder.java index 1ae1c987ffd..60ed6645303 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/UserItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/UserItemRequestBuilder.java @@ -102,6 +102,7 @@ import com.microsoft.graph.beta.users.item.sendmail.SendMailRequestBuilder; import com.microsoft.graph.beta.users.item.serviceprovisioningerrors.ServiceProvisioningErrorsRequestBuilder; import com.microsoft.graph.beta.users.item.settings.SettingsRequestBuilder; +import com.microsoft.graph.beta.users.item.solutions.SolutionsRequestBuilder; import com.microsoft.graph.beta.users.item.sponsors.SponsorsRequestBuilder; import com.microsoft.graph.beta.users.item.teamwork.TeamworkRequestBuilder; import com.microsoft.graph.beta.users.item.todo.TodoRequestBuilder; @@ -886,6 +887,14 @@ public ServiceProvisioningErrorsRequestBuilder serviceProvisioningErrors() { public SettingsRequestBuilder settings() { return new SettingsRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to manage the solutions property of the microsoft.graph.user entity. + * @return a {@link SolutionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SolutionsRequestBuilder solutions() { + return new SolutionsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the sponsors property of the microsoft.graph.user entity. * @return a {@link SponsorsRequestBuilder} @@ -1025,7 +1034,7 @@ public UserItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ super(requestAdapter, "{+baseurl}/users/{user%2Did}{?%24expand,%24select}", rawUrl); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @@ -1033,7 +1042,7 @@ public void delete() { delete(null); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. * @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 @@ -1111,7 +1120,7 @@ public OnlineMeetingsWithJoinWebUrlRequestBuilder onlineMeetingsWithJoinWebUrl(@ return new OnlineMeetingsWithJoinWebUrlRequestBuilder(pathParameters, requestAdapter, joinWebUrl); } /** - * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. + * Update the properties of a user object. * @param body The request body * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code @@ -1122,7 +1131,7 @@ public User patch(@jakarta.annotation.Nonnull final User body) { return patch(body, null); } /** - * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. + * Update the properties of a user object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} @@ -1150,7 +1159,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder reminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(pathParameters, requestAdapter, EndDateTime, StartDateTime); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -1158,7 +1167,7 @@ public RequestInformation toDeleteRequestInformation() { return toDeleteRequestInformation(null); } /** - * Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + * Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -1190,7 +1199,7 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f return requestInfo; } /** - * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. + * Update the properties of a user object. * @param body The request body * @return a {@link RequestInformation} */ @@ -1199,7 +1208,7 @@ public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull return toPatchRequestInformation(body, null); } /** - * Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. + * Update the properties of a user object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/assignlicense/AssignLicenseRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/assignlicense/AssignLicenseRequestBuilder.java index 9781cc93fdd..e75ad47856d 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/assignlicense/AssignLicenseRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/assignlicense/AssignLicenseRequestBuilder.java @@ -36,7 +36,7 @@ public AssignLicenseRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/users/{user%2Did}/assignLicense", rawUrl); } /** - * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To learn more about subscriptions and licenses, see this Technet article. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To get the subscriptions available in the directory, perform a GET subscribedSkus request. * @param body The request body * @return a {@link User} * @throws ODataError When receiving a 4XX or 5XX status code @@ -47,7 +47,7 @@ public User post(@jakarta.annotation.Nonnull final AssignLicensePostRequestBody return post(body, null); } /** - * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To learn more about subscriptions and licenses, see this Technet article. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To get the subscriptions available in the directory, perform a GET subscribedSkus request. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link User} @@ -63,7 +63,7 @@ public User post(@jakarta.annotation.Nonnull final AssignLicensePostRequestBody return this.requestAdapter.send(requestInfo, errorMapping, User::createFromDiscriminatorValue); } /** - * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To learn more about subscriptions and licenses, see this Technet article. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To get the subscriptions available in the directory, perform a GET subscribedSkus request. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To learn more about subscriptions and licenses, see this Technet article. To get the subscriptions available in the directory, perform a GET subscribedSkus request. + * Add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. To get the subscriptions available in the directory, perform a GET subscribedSkus request. * @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/beta/generated/users/item/authentication/fido2methods/Fido2MethodsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/fido2methods/Fido2MethodsRequestBuilder.java index a38336fe8eb..d339cbf78d9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/fido2methods/Fido2MethodsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/fido2methods/Fido2MethodsRequestBuilder.java @@ -3,6 +3,7 @@ import com.microsoft.graph.beta.models.Fido2AuthenticationMethodCollectionResponse; import com.microsoft.graph.beta.models.odataerrors.ODataError; import com.microsoft.graph.beta.users.item.authentication.fido2methods.count.CountRequestBuilder; +import com.microsoft.graph.beta.users.item.authentication.fido2methods.creationoptionswithchallengetimeoutinminutes.CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder; import com.microsoft.graph.beta.users.item.authentication.fido2methods.item.Fido2AuthenticationMethodItemRequestBuilder; import com.microsoft.kiota.BaseRequestBuilder; import com.microsoft.kiota.BaseRequestConfiguration; @@ -30,6 +31,14 @@ public class Fido2MethodsRequestBuilder extends BaseRequestBuilder { public CountRequestBuilder count() { return new CountRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the creationOptions method. + * @return a {@link CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder creationOptionsWithChallengeTimeoutInMinutes() { + return new CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to manage the fido2Methods property of the microsoft.graph.authentication entity. * @param fido2AuthenticationMethodId The unique identifier of fido2AuthenticationMethod diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/fido2methods/creationoptionswithchallengetimeoutinminutes/CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/fido2methods/creationoptionswithchallengetimeoutinminutes/CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder.java new file mode 100644 index 00000000000..e42b08a0811 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/fido2methods/creationoptionswithchallengetimeoutinminutes/CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder.java @@ -0,0 +1,125 @@ +package com.microsoft.graph.beta.users.item.authentication.fido2methods.creationoptionswithchallengetimeoutinminutes; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.models.WebauthnCredentialCreationOptions; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the creationOptions method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/fido2Methods/creationOptions(challengeTimeoutInMinutes=@challengeTimeoutInMinutes){?challengeTimeoutInMinutes*}", pathParameters); + } + /** + * Instantiates a new {@link CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/fido2Methods/creationOptions(challengeTimeoutInMinutes=@challengeTimeoutInMinutes){?challengeTimeoutInMinutes*}", rawUrl); + } + /** + * Retrieve creation options required to generate and register a Microsoft Entra ID-compatible passkey. Self-service operations aren't supported. + * @return a {@link WebauthnCredentialCreationOptions} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public WebauthnCredentialCreationOptions get() { + return get(null); + } + /** + * Retrieve creation options required to generate and register a Microsoft Entra ID-compatible passkey. Self-service operations aren't supported. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WebauthnCredentialCreationOptions} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public WebauthnCredentialCreationOptions get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WebauthnCredentialCreationOptions::createFromDiscriminatorValue); + } + /** + * Retrieve creation options required to generate and register a Microsoft Entra ID-compatible passkey. Self-service operations aren't supported. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Retrieve creation options required to generate and register a Microsoft Entra ID-compatible passkey. Self-service operations aren't supported. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder} + */ + @jakarta.annotation.Nonnull + public CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new CreationOptionsWithChallengeTimeoutInMinutesRequestBuilder(rawUrl, requestAdapter); + } + /** + * Retrieve creation options required to generate and register a Microsoft Entra ID-compatible passkey. Self-service operations aren't supported. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Usage: challengeTimeoutInMinutes=@challengeTimeoutInMinutes + */ + @jakarta.annotation.Nullable + public Integer challengeTimeoutInMinutes; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("challengeTimeoutInMinutes", challengeTimeoutInMinutes); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/beta/generated/users/item/authentication/methods/item/resetpassword/ResetPasswordRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/methods/item/resetpassword/ResetPasswordRequestBuilder.java index f1a54cdbd59..eee0150e375 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/methods/item/resetpassword/ResetPasswordRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/methods/item/resetpassword/ResetPasswordRequestBuilder.java @@ -36,7 +36,7 @@ public ResetPasswordRequestBuilder(@jakarta.annotation.Nonnull final String rawU super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/methods/{authenticationMethod%2Did}/resetPassword", rawUrl); } /** - * Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + * Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @return a {@link PasswordResetResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -47,7 +47,7 @@ public PasswordResetResponse post(@jakarta.annotation.Nonnull final ResetPasswor return post(body, null); } /** - * Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + * Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link PasswordResetResponse} @@ -63,7 +63,7 @@ public PasswordResetResponse post(@jakarta.annotation.Nonnull final ResetPasswor return this.requestAdapter.send(requestInfo, errorMapping, PasswordResetResponse::createFromDiscriminatorValue); } /** - * Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + * Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @return a {@link RequestInformation} */ @@ -72,7 +72,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + * Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/microsoftauthenticatormethods/item/device/DeviceRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/microsoftauthenticatormethods/item/device/DeviceRequestBuilder.java index ebe6ce01936..9df96c1f9df 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/microsoftauthenticatormethods/item/device/DeviceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/microsoftauthenticatormethods/item/device/DeviceRequestBuilder.java @@ -37,7 +37,7 @@ public DeviceRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @ja super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/microsoftAuthenticatorMethods/{microsoftAuthenticatorAuthenticationMethod%2Did}/device{?%24expand,%24select}", rawUrl); } /** - * The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + * The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. * @return a {@link Device} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -46,7 +46,7 @@ public Device get() { return get(null); } /** - * The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + * The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link Device} * @throws ODataError When receiving a 4XX or 5XX status code @@ -59,7 +59,7 @@ public Device get(@jakarta.annotation.Nullable final java.util.function.Consumer return this.requestAdapter.send(requestInfo, errorMapping, Device::createFromDiscriminatorValue); } /** - * The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + * The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -67,7 +67,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + * The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -89,7 +89,7 @@ public DeviceRequestBuilder withUrl(@jakarta.annotation.Nonnull final String raw return new DeviceRequestBuilder(rawUrl, requestAdapter); } /** - * The registered device on which Microsoft Authenticator resides. This property is null if the device is not registered for passwordless Phone Sign-In. + * The registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/operations/OperationsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/operations/OperationsRequestBuilder.java index 8b1ab9f6fcd..1900f06b817 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/operations/OperationsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/operations/OperationsRequestBuilder.java @@ -60,7 +60,7 @@ public OperationsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, super(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @return a {@link LongRunningOperationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public LongRunningOperationCollectionResponse get() { return get(null); } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link LongRunningOperationCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public LongRunningOperation post(@jakarta.annotation.Nonnull final LongRunningOp return this.requestAdapter.send(requestInfo, errorMapping, LongRunningOperation::createFromDiscriminatorValue); } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public OperationsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String return new OperationsRequestBuilder(rawUrl, requestAdapter); } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/operations/item/LongRunningOperationItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/operations/item/LongRunningOperationItemRequestBuilder.java index e4831044623..d1cc6789456 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/operations/item/LongRunningOperationItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/authentication/operations/item/LongRunningOperationItemRequestBuilder.java @@ -55,21 +55,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 an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @return a {@link LongRunningOperation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public LongRunningOperation get() { return get(null); } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link LongRunningOperation} * @throws ODataError When receiving a 4XX or 5XX status code - * @see Find more info here + * @see Find more info here */ @jakarta.annotation.Nullable public LongRunningOperation get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { @@ -124,7 +124,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -132,7 +132,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -184,7 +184,7 @@ public LongRunningOperationItemRequestBuilder withUrl(@jakarta.annotation.Nonnul public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Retrieve the properties and relationships of an operation object. Currently these operations are generated by initiating a password reset using the reset password method. An operation object tells the caller about the current state of that password reset operation. Possible states include: Succeeded and Failed are terminal states. + * Read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/CloudPCItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/CloudPCItemRequestBuilder.java index 26fd637b766..e3ae5be3152 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/CloudPCItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/CloudPCItemRequestBuilder.java @@ -8,7 +8,6 @@ import com.microsoft.graph.beta.users.item.cloudpcs.item.getcloudpcconnectivityhistory.GetCloudPcConnectivityHistoryRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.getcloudpclaunchinfo.GetCloudPcLaunchInfoRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.getfrontlinecloudpcaccessstate.GetFrontlineCloudPcAccessStateRequestBuilder; -import com.microsoft.graph.beta.users.item.cloudpcs.item.getshiftworkcloudpcaccessstate.GetShiftWorkCloudPcAccessStateRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.getsupportedcloudpcremoteactions.GetSupportedCloudPcRemoteActionsRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.poweroff.PowerOffRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.poweron.PowerOnRequestBuilder; @@ -17,6 +16,7 @@ import com.microsoft.graph.beta.users.item.cloudpcs.item.reprovision.ReprovisionRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.resize.ResizeRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.restore.RestoreRequestBuilder; +import com.microsoft.graph.beta.users.item.cloudpcs.item.retrievecloudpcremoteactionresults.RetrieveCloudPCRemoteActionResultsRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.retrievereviewstatus.RetrieveReviewStatusRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.retrypartneragentinstallation.RetryPartnerAgentInstallationRequestBuilder; import com.microsoft.graph.beta.users.item.cloudpcs.item.setreviewstatus.SetReviewStatusRequestBuilder; @@ -89,14 +89,6 @@ public GetCloudPcLaunchInfoRequestBuilder getCloudPcLaunchInfo() { public GetFrontlineCloudPcAccessStateRequestBuilder getFrontlineCloudPcAccessState() { return new GetFrontlineCloudPcAccessStateRequestBuilder(pathParameters, requestAdapter); } - /** - * Provides operations to call the getShiftWorkCloudPcAccessState method. - * @return a {@link GetShiftWorkCloudPcAccessStateRequestBuilder} - */ - @jakarta.annotation.Nonnull - public GetShiftWorkCloudPcAccessStateRequestBuilder getShiftWorkCloudPcAccessState() { - return new GetShiftWorkCloudPcAccessStateRequestBuilder(pathParameters, requestAdapter); - } /** * Provides operations to call the getSupportedCloudPcRemoteActions method. * @return a {@link GetSupportedCloudPcRemoteActionsRequestBuilder} @@ -161,6 +153,14 @@ public ResizeRequestBuilder resize() { public RestoreRequestBuilder restore() { return new RestoreRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the retrieveCloudPCRemoteActionResults method. + * @return a {@link RetrieveCloudPCRemoteActionResultsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RetrieveCloudPCRemoteActionResultsRequestBuilder retrieveCloudPCRemoteActionResults() { + return new RetrieveCloudPCRemoteActionResultsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the retrieveReviewStatus method. * @return a {@link RetrieveReviewStatusRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/getshiftworkcloudpcaccessstate/GetShiftWorkCloudPcAccessStateRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/getshiftworkcloudpcaccessstate/GetShiftWorkCloudPcAccessStateRequestBuilder.java deleted file mode 100644 index 2d14c90c9f7..00000000000 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/getshiftworkcloudpcaccessstate/GetShiftWorkCloudPcAccessStateRequestBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.microsoft.graph.beta.users.item.cloudpcs.item.getshiftworkcloudpcaccessstate; - -import com.microsoft.graph.beta.models.odataerrors.ODataError; -import com.microsoft.graph.beta.models.ShiftWorkCloudPcAccessState; -import com.microsoft.kiota.BaseRequestBuilder; -import com.microsoft.kiota.BaseRequestConfiguration; -import com.microsoft.kiota.HttpMethod; -import com.microsoft.kiota.RequestAdapter; -import com.microsoft.kiota.RequestInformation; -import com.microsoft.kiota.RequestOption; -import com.microsoft.kiota.serialization.Parsable; -import com.microsoft.kiota.serialization.ParsableFactory; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -/** - * Provides operations to call the getShiftWorkCloudPcAccessState method. - */ -@jakarta.annotation.Generated("com.microsoft.kiota") -public class GetShiftWorkCloudPcAccessStateRequestBuilder extends BaseRequestBuilder { - /** - * Instantiates a new {@link GetShiftWorkCloudPcAccessStateRequestBuilder} and sets the default values. - * @param pathParameters Path parameters for the request - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetShiftWorkCloudPcAccessStateRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}/getShiftWorkCloudPcAccessState()", pathParameters); - } - /** - * Instantiates a new {@link GetShiftWorkCloudPcAccessStateRequestBuilder} and sets the default values. - * @param rawUrl The raw URL to use for the request builder. - * @param requestAdapter The request adapter to use to execute the requests. - */ - public GetShiftWorkCloudPcAccessStateRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { - super(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}/getShiftWorkCloudPcAccessState()", rawUrl); - } - /** - * Get the shiftWorkCloudPcAccessState of a shift work Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest shift work Cloud PC accessState and determine whether the shift work Cloud PC is accessible to the user. If a web client needs to connect to a shift work Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState is not active/activating/standbyMode, the web client shows a 'bad bookmark'. - * @return a {@link ShiftWorkCloudPcAccessState} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - * @see Find more info here - */ - @jakarta.annotation.Nullable - @Deprecated - public ShiftWorkCloudPcAccessState get() { - return get(null); - } - /** - * Get the shiftWorkCloudPcAccessState of a shift work Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest shift work Cloud PC accessState and determine whether the shift work Cloud PC is accessible to the user. If a web client needs to connect to a shift work Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState is not active/activating/standbyMode, the web client shows a 'bad bookmark'. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link ShiftWorkCloudPcAccessState} - * @throws ODataError When receiving a 4XX or 5XX status code - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - * @see Find more info here - */ - @jakarta.annotation.Nullable - @Deprecated - public ShiftWorkCloudPcAccessState get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); - final HashMap> errorMapping = new HashMap>(); - errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); - return this.requestAdapter.sendEnum(requestInfo, errorMapping, ShiftWorkCloudPcAccessState::forValue); - } - /** - * Get the shiftWorkCloudPcAccessState of a shift work Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest shift work Cloud PC accessState and determine whether the shift work Cloud PC is accessible to the user. If a web client needs to connect to a shift work Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState is not active/activating/standbyMode, the web client shows a 'bad bookmark'. - * @return a {@link RequestInformation} - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation toGetRequestInformation() { - return toGetRequestInformation(null); - } - /** - * Get the shiftWorkCloudPcAccessState of a shift work Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest shift work Cloud PC accessState and determine whether the shift work Cloud PC is accessible to the user. If a web client needs to connect to a shift work Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState is not active/activating/standbyMode, the web client shows a 'bad bookmark'. - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return a {@link RequestInformation} - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - */ - @jakarta.annotation.Nonnull - @Deprecated - public RequestInformation 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 GetShiftWorkCloudPcAccessStateRequestBuilder} - * @deprecated - * The getShiftWorkCloudPcAccessState API is deprecated and will stop returning data on Dec 31, 2023. Please use the new getFrontlineCloudPcAccessState API as of 2023-08/getShiftWorkCloudPcAccessState - */ - @jakarta.annotation.Nonnull - @Deprecated - public GetShiftWorkCloudPcAccessStateRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { - Objects.requireNonNull(rawUrl); - return new GetShiftWorkCloudPcAccessStateRequestBuilder(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/beta/generated/users/item/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsGetResponse.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsGetResponse.java new file mode 100644 index 00000000000..8d2556d0afa --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsGetResponse.java @@ -0,0 +1,63 @@ +package com.microsoft.graph.beta.users.item.cloudpcs.item.retrievecloudpcremoteactionresults; + +import com.microsoft.graph.beta.models.BaseCollectionPaginationCountResponse; +import com.microsoft.graph.beta.models.CloudPcRemoteActionResult; +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 RetrieveCloudPCRemoteActionResultsGetResponse extends BaseCollectionPaginationCountResponse implements Parsable { + /** + * Instantiates a new {@link RetrieveCloudPCRemoteActionResultsGetResponse} and sets the default values. + */ + public RetrieveCloudPCRemoteActionResultsGetResponse() { + 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 RetrieveCloudPCRemoteActionResultsGetResponse} + */ + @jakarta.annotation.Nonnull + public static RetrieveCloudPCRemoteActionResultsGetResponse createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new RetrieveCloudPCRemoteActionResultsGetResponse(); + } + /** + * 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(CloudPcRemoteActionResult::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/beta/generated/users/item/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsRequestBuilder.java new file mode 100644 index 00000000000..2ef16f353d5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/cloudpcs/item/retrievecloudpcremoteactionresults/RetrieveCloudPCRemoteActionResultsRequestBuilder.java @@ -0,0 +1,148 @@ +package com.microsoft.graph.beta.users.item.cloudpcs.item.retrievecloudpcremoteactionresults; + +import com.microsoft.graph.beta.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 retrieveCloudPCRemoteActionResults method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class RetrieveCloudPCRemoteActionResultsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link RetrieveCloudPCRemoteActionResultsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RetrieveCloudPCRemoteActionResultsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}/retrieveCloudPCRemoteActionResults(){?%24count,%24filter,%24search,%24skip,%24top}", pathParameters); + } + /** + * Instantiates a new {@link RetrieveCloudPCRemoteActionResultsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public RetrieveCloudPCRemoteActionResultsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}/retrieveCloudPCRemoteActionResults(){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + * @return a {@link RetrieveCloudPCRemoteActionResultsGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public RetrieveCloudPCRemoteActionResultsGetResponse get() { + return get(null); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RetrieveCloudPCRemoteActionResultsGetResponse} + * @throws ODataError When receiving a 4XX or 5XX status code + * @see Find more info here + */ + @jakarta.annotation.Nullable + public RetrieveCloudPCRemoteActionResultsGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, RetrieveCloudPCRemoteActionResultsGetResponse::createFromDiscriminatorValue); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final 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 RetrieveCloudPCRemoteActionResultsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public RetrieveCloudPCRemoteActionResultsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new RetrieveCloudPCRemoteActionResultsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. + */ + @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; + /** + * 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); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and 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/beta/generated/users/item/getmembergroups/GetMemberGroupsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/getmembergroups/GetMemberGroupsRequestBuilder.java index 582aac22d89..87bb4adc278 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/getmembergroups/GetMemberGroupsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/getmembergroups/GetMemberGroupsRequestBuilder.java @@ -35,7 +35,7 @@ public GetMemberGroupsRequestBuilder(@jakarta.annotation.Nonnull final String ra super(requestAdapter, "{+baseurl}/users/{user%2Did}/getMemberGroups", rawUrl); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link GetMemberGroupsPostResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -46,7 +46,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return post(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetMemberGroupsPostResponse} @@ -62,7 +62,7 @@ public GetMemberGroupsPostResponse post(@jakarta.annotation.Nonnull final GetMem return this.requestAdapter.send(requestInfo, errorMapping, GetMemberGroupsPostResponse::createFromDiscriminatorValue); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @return a {@link RequestInformation} */ @@ -71,7 +71,7 @@ public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull f return toPostRequestInformation(body, null); } /** - * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. + * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/insights/InsightsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/insights/InsightsRequestBuilder.java index ce250fd6f2f..36532a551a8 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/insights/InsightsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/insights/InsightsRequestBuilder.java @@ -82,7 +82,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Get insights from users + * Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. * @return a {@link ItemInsights} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -91,7 +91,7 @@ public ItemInsights get() { return get(null); } /** - * Get insights from users + * Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link ItemInsights} * @throws ODataError When receiving a 4XX or 5XX status code @@ -149,7 +149,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Get insights from users + * Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -157,7 +157,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Get insights from users + * Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -209,7 +209,7 @@ public InsightsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String r public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Get insights from users + * Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/ManagedDeviceItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/ManagedDeviceItemRequestBuilder.java index 14b6d1e92e1..99642aa7a0f 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/ManagedDeviceItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/ManagedDeviceItemRequestBuilder.java @@ -5,6 +5,7 @@ import com.microsoft.graph.beta.users.item.manageddevices.item.activatedeviceesim.ActivateDeviceEsimRequestBuilder; import com.microsoft.graph.beta.users.item.manageddevices.item.assignmentfilterevaluationstatusdetails.AssignmentFilterEvaluationStatusDetailsRequestBuilder; import com.microsoft.graph.beta.users.item.manageddevices.item.bypassactivationlock.BypassActivationLockRequestBuilder; +import com.microsoft.graph.beta.users.item.manageddevices.item.changeassignments.ChangeAssignmentsRequestBuilder; import com.microsoft.graph.beta.users.item.manageddevices.item.cleanwindowsdevice.CleanWindowsDeviceRequestBuilder; import com.microsoft.graph.beta.users.item.manageddevices.item.createdevicelogcollectionrequest.CreateDeviceLogCollectionRequestRequestBuilder; import com.microsoft.graph.beta.users.item.manageddevices.item.deleteuserfromsharedappledevice.DeleteUserFromSharedAppleDeviceRequestBuilder; @@ -102,6 +103,14 @@ public AssignmentFilterEvaluationStatusDetailsRequestBuilder assignmentFilterEva public BypassActivationLockRequestBuilder bypassActivationLock() { return new BypassActivationLockRequestBuilder(pathParameters, requestAdapter); } + /** + * Provides operations to call the changeAssignments method. + * @return a {@link ChangeAssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ChangeAssignmentsRequestBuilder changeAssignments() { + return new ChangeAssignmentsRequestBuilder(pathParameters, requestAdapter); + } /** * Provides operations to call the cleanWindowsDevice method. * @return a {@link CleanWindowsDeviceRequestBuilder} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java new file mode 100644 index 00000000000..0ac95348721 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/changeassignments/ChangeAssignmentsPostRequestBody.java @@ -0,0 +1,108 @@ +package com.microsoft.graph.beta.users.item.manageddevices.item.changeassignments; + +import com.microsoft.graph.beta.models.DeviceAssignmentItem; +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.microsoft.kiota.store.BackingStoreFactorySingleton; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ChangeAssignmentsPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { + /** + * Stores model information. + */ + @jakarta.annotation.Nonnull + protected BackingStore backingStore; + /** + * Instantiates a new {@link ChangeAssignmentsPostRequestBody} and sets the default values. + */ + public ChangeAssignmentsPostRequestBody() { + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); + this.setAdditionalData(new HashMap<>()); + } + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param parseNode The parse node to use to read the discriminator value and create the object + * @return a {@link ChangeAssignmentsPostRequestBody} + */ + @jakarta.annotation.Nonnull + public static ChangeAssignmentsPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { + Objects.requireNonNull(parseNode); + return new ChangeAssignmentsPostRequestBody(); + } + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map getAdditionalData() { + Map value = this.backingStore.get("additionalData"); + if(value == null) { + value = new HashMap<>(); + this.setAdditionalData(value); + } + return value; + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * Gets the deviceAssignmentItems property value. The deviceAssignmentItems property + * @return a {@link java.util.List} + */ + @jakarta.annotation.Nullable + public java.util.List getDeviceAssignmentItems() { + return this.backingStore.get("deviceAssignmentItems"); + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("deviceAssignmentItems", (n) -> { this.setDeviceAssignmentItems(n.getCollectionOfObjectValues(DeviceAssignmentItem::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.writeCollectionOfObjectValues("deviceAssignmentItems", this.getDeviceAssignmentItems()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @param value Value to set for the backingStore property. + */ + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { + Objects.requireNonNull(value); + this.backingStore = value; + } + /** + * Sets the deviceAssignmentItems property value. The deviceAssignmentItems property + * @param value Value to set for the deviceAssignmentItems property. + */ + public void setDeviceAssignmentItems(@jakarta.annotation.Nullable final java.util.List value) { + this.backingStore.set("deviceAssignmentItems", value); + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java new file mode 100644 index 00000000000..b6101d09034 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/changeassignments/ChangeAssignmentsRequestBuilder.java @@ -0,0 +1,98 @@ +package com.microsoft.graph.beta.users.item.manageddevices.item.changeassignments; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the changeAssignments method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class ChangeAssignmentsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link ChangeAssignmentsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ChangeAssignmentsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/managedDevices/{managedDevice%2Did}/changeAssignments", pathParameters); + } + /** + * Instantiates a new {@link ChangeAssignmentsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public ChangeAssignmentsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/managedDevices/{managedDevice%2Did}/changeAssignments", rawUrl); + } + /** + * Invoke action changeAssignments + * @param body The request body + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body) { + post(body, null); + } + /** + * Invoke action changeAssignments + * @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 ChangeAssignmentsPostRequestBody body, @jakarta.annotation.Nullable final 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 changeAssignments + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body) { + return toPostRequestInformation(body, null); + } + /** + * Invoke action changeAssignments + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final ChangeAssignmentsPostRequestBody body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.POST, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PostRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link ChangeAssignmentsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public ChangeAssignmentsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new ChangeAssignmentsRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java index a9237a5d145..03a58d364dd 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/manageddevices/item/getcloudpcremoteactionresults/GetCloudPcRemoteActionResultsRequestBuilder.java @@ -39,9 +39,12 @@ public GetCloudPcRemoteActionResultsRequestBuilder(@jakarta.annotation.Nonnull f * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @return a {@link GetCloudPcRemoteActionResultsGetResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults * @see Find more info here */ @jakarta.annotation.Nullable + @Deprecated public GetCloudPcRemoteActionResultsGetResponse get() { return get(null); } @@ -50,9 +53,12 @@ public GetCloudPcRemoteActionResultsGetResponse get() { * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link GetCloudPcRemoteActionResultsGetResponse} * @throws ODataError When receiving a 4XX or 5XX status code + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults * @see Find more info here */ @jakarta.annotation.Nullable + @Deprecated public GetCloudPcRemoteActionResultsGetResponse get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); final HashMap> errorMapping = new HashMap>(); @@ -62,8 +68,11 @@ public GetCloudPcRemoteActionResultsGetResponse get(@jakarta.annotation.Nullable /** * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @return a {@link RequestInformation} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } @@ -71,8 +80,11 @@ public RequestInformation toGetRequestInformation() { * Check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); @@ -83,8 +95,11 @@ public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable f * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. * @param rawUrl The raw URL to use for the request builder. * @return a {@link GetCloudPcRemoteActionResultsRequestBuilder} + * @deprecated + * Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults */ @jakarta.annotation.Nonnull + @Deprecated public GetCloudPcRemoteActionResultsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { Objects.requireNonNull(rawUrl); return new GetCloudPcRemoteActionResultsRequestBuilder(rawUrl, requestAdapter); diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/mobileapptroubleshootingevents/item/applogcollectionrequests/AppLogCollectionRequestsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/mobileapptroubleshootingevents/item/applogcollectionrequests/AppLogCollectionRequestsRequestBuilder.java index d073bb70e4c..f9661664452 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/mobileapptroubleshootingevents/item/applogcollectionrequests/AppLogCollectionRequestsRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/mobileapptroubleshootingevents/item/applogcollectionrequests/AppLogCollectionRequestsRequestBuilder.java @@ -60,7 +60,7 @@ public AppLogCollectionRequestsRequestBuilder(@jakarta.annotation.Nonnull final super(requestAdapter, "{+baseurl}/users/{user%2Did}/mobileAppTroubleshootingEvents/{mobileAppTroubleshootingEvent%2Did}/appLogCollectionRequests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @return a {@link AppLogCollectionRequestCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -69,7 +69,7 @@ public AppLogCollectionRequestCollectionResponse get() { return get(null); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppLogCollectionRequestCollectionResponse} * @throws ODataError When receiving a 4XX or 5XX status code @@ -107,7 +107,7 @@ public AppLogCollectionRequest post(@jakarta.annotation.Nonnull final AppLogColl return this.requestAdapter.send(requestInfo, errorMapping, AppLogCollectionRequest::createFromDiscriminatorValue); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -115,7 +115,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -161,7 +161,7 @@ public AppLogCollectionRequestsRequestBuilder withUrl(@jakarta.annotation.Nonnul return new AppLogCollectionRequestsRequestBuilder(rawUrl, requestAdapter); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/mobileapptroubleshootingevents/item/applogcollectionrequests/item/AppLogCollectionRequestItemRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/mobileapptroubleshootingevents/item/applogcollectionrequests/item/AppLogCollectionRequestItemRequestBuilder.java index 7fc9ec84d77..0499e5dc155 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/mobileapptroubleshootingevents/item/applogcollectionrequests/item/AppLogCollectionRequestItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/mobileapptroubleshootingevents/item/applogcollectionrequests/item/AppLogCollectionRequestItemRequestBuilder.java @@ -64,7 +64,7 @@ public void delete(@jakarta.annotation.Nullable final java.util.function.Consume this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @return a {@link AppLogCollectionRequest} * @throws ODataError When receiving a 4XX or 5XX status code */ @@ -73,7 +73,7 @@ public AppLogCollectionRequest get() { return get(null); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link AppLogCollectionRequest} * @throws ODataError When receiving a 4XX or 5XX status code @@ -131,7 +131,7 @@ public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullabl return requestInfo; } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull @@ -139,7 +139,7 @@ public RequestInformation toGetRequestInformation() { return toGetRequestInformation(null); } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link RequestInformation} */ @@ -191,7 +191,7 @@ public AppLogCollectionRequestItemRequestBuilder withUrl(@jakarta.annotation.Non public class DeleteRequestConfiguration extends BaseRequestConfiguration { } /** - * Indicates collection of App Log Upload Request. + * The collection property of AppLogUploadRequest. */ @jakarta.annotation.Generated("com.microsoft.kiota") public class GetQueryParameters implements QueryParameters { diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/restore/RestorePostRequestBody.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/restore/RestorePostRequestBody.java new file mode 100644 index 00000000000..c2baf5c9785 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/restore/RestorePostRequestBody.java @@ -0,0 +1,107 @@ +package com.microsoft.graph.beta.users.item.restore; + +import com.microsoft.kiota.serialization.AdditionalDataHolder; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParseNode; +import com.microsoft.kiota.serialization.SerializationWriter; +import com.microsoft.kiota.store.BackedModel; +import com.microsoft.kiota.store.BackingStore; +import com.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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @return a {@link Boolean} + */ + @jakarta.annotation.Nullable + public Boolean getAutoReconcileProxyConflict() { + return this.backingStore.get("autoReconcileProxyConflict"); + } + /** + * Gets the backingStore property value. Stores model information. + * @return a {@link BackingStore} + */ + @jakarta.annotation.Nonnull + public BackingStore getBackingStore() { + return this.backingStore; + } + /** + * The deserialization information for the current model + * @return a {@link Map>} + */ + @jakarta.annotation.Nonnull + public Map> getFieldDeserializers() { + final HashMap> deserializerMap = new HashMap>(1); + deserializerMap.put("autoReconcileProxyConflict", (n) -> { this.setAutoReconcileProxyConflict(n.getBooleanValue()); }); + 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.writeBooleanValue("autoReconcileProxyConflict", this.getAutoReconcileProxyConflict()); + writer.writeAdditionalData(this.getAdditionalData()); + } + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param value Value to set for the AdditionalData property. + */ + public void setAdditionalData(@jakarta.annotation.Nullable final Map value) { + this.backingStore.set("additionalData", value); + } + /** + * Sets the autoReconcileProxyConflict property value. The autoReconcileProxyConflict property + * @param value Value to set for the autoReconcileProxyConflict property. + */ + public void setAutoReconcileProxyConflict(@jakarta.annotation.Nullable final Boolean value) { + this.backingStore.set("autoReconcileProxyConflict", value); + } + /** + * Sets the backingStore property value. Stores model information. + * @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/beta/generated/users/item/restore/RestoreRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/restore/RestoreRequestBuilder.java index 2f6f2602e67..40c18e9dcb9 100644 --- a/src/main/java/com/microsoft/graph/beta/generated/users/item/restore/RestoreRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/restore/RestoreRequestBuilder.java @@ -37,46 +37,53 @@ public RestoreRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @j } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post() { - return post(null); + public DirectoryObject post(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return post(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return a {@link DirectoryObject} * @throws ODataError When receiving a 4XX or 5XX status code * @see Find more info here */ @jakarta.annotation.Nullable - public DirectoryObject post(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { - final RequestInformation requestInfo = toPostRequestInformation(requestConfiguration); + public DirectoryObject 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, DirectoryObject::createFromDiscriminatorValue); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @return a {@link RequestInformation} */ @jakarta.annotation.Nonnull - public RequestInformation toPostRequestInformation() { - return toPostRequestInformation(null); + public RequestInformation toPostRequestInformation(@jakarta.annotation.Nonnull final RestorePostRequestBody body) { + return toPostRequestInformation(body, null); } /** * Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + * @param body The request body * @param requestConfiguration 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) { + 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; } /** diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/SolutionsRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/SolutionsRequestBuilder.java new file mode 100644 index 00000000000..2508290bf99 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/SolutionsRequestBuilder.java @@ -0,0 +1,237 @@ +package com.microsoft.graph.beta.users.item.solutions; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.models.UserSolutionRoot; +import com.microsoft.graph.beta.users.item.solutions.workingtimeschedule.WorkingTimeScheduleRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the solutions property of the microsoft.graph.user entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class SolutionsRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the workingTimeSchedule property of the microsoft.graph.userSolutionRoot entity. + * @return a {@link WorkingTimeScheduleRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WorkingTimeScheduleRequestBuilder workingTimeSchedule() { + return new WorkingTimeScheduleRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link SolutionsRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SolutionsRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/solutions{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link SolutionsRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public SolutionsRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/solutions{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property solutions for users + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property solutions for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get solutions from users + * @return a {@link UserSolutionRoot} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserSolutionRoot get() { + return get(null); + } + /** + * Get solutions from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UserSolutionRoot} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserSolutionRoot get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UserSolutionRoot::createFromDiscriminatorValue); + } + /** + * Update the navigation property solutions in users + * @param body The request body + * @return a {@link UserSolutionRoot} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserSolutionRoot patch(@jakarta.annotation.Nonnull final UserSolutionRoot body) { + return patch(body, null); + } + /** + * Update the navigation property solutions in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link UserSolutionRoot} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public UserSolutionRoot patch(@jakarta.annotation.Nonnull final UserSolutionRoot body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, UserSolutionRoot::createFromDiscriminatorValue); + } + /** + * Delete navigation property solutions for users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property solutions for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get solutions from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get solutions from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property solutions in users + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UserSolutionRoot body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property solutions in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final UserSolutionRoot body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link SolutionsRequestBuilder} + */ + @jakarta.annotation.Nonnull + public SolutionsRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new SolutionsRequestBuilder(rawUrl, 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 solutions from users + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/WorkingTimeScheduleRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/WorkingTimeScheduleRequestBuilder.java new file mode 100644 index 00000000000..5aad3ead146 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/WorkingTimeScheduleRequestBuilder.java @@ -0,0 +1,246 @@ +package com.microsoft.graph.beta.users.item.solutions.workingtimeschedule; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.graph.beta.models.WorkingTimeSchedule; +import com.microsoft.graph.beta.users.item.solutions.workingtimeschedule.endworkingtime.EndWorkingTimeRequestBuilder; +import com.microsoft.graph.beta.users.item.solutions.workingtimeschedule.startworkingtime.StartWorkingTimeRequestBuilder; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.QueryParameters; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to manage the workingTimeSchedule property of the microsoft.graph.userSolutionRoot entity. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class WorkingTimeScheduleRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to call the endWorkingTime method. + * @return a {@link EndWorkingTimeRequestBuilder} + */ + @jakarta.annotation.Nonnull + public EndWorkingTimeRequestBuilder endWorkingTime() { + return new EndWorkingTimeRequestBuilder(pathParameters, requestAdapter); + } + /** + * Provides operations to call the startWorkingTime method. + * @return a {@link StartWorkingTimeRequestBuilder} + */ + @jakarta.annotation.Nonnull + public StartWorkingTimeRequestBuilder startWorkingTime() { + return new StartWorkingTimeRequestBuilder(pathParameters, requestAdapter); + } + /** + * Instantiates a new {@link WorkingTimeScheduleRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WorkingTimeScheduleRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/solutions/workingTimeSchedule{?%24expand,%24select}", pathParameters); + } + /** + * Instantiates a new {@link WorkingTimeScheduleRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public WorkingTimeScheduleRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/solutions/workingTimeSchedule{?%24expand,%24select}", rawUrl); + } + /** + * Delete navigation property workingTimeSchedule for users + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete() { + delete(null); + } + /** + * Delete navigation property workingTimeSchedule for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class); + } + /** + * Get workingTimeSchedule from users + * @return a {@link WorkingTimeSchedule} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WorkingTimeSchedule get() { + return get(null); + } + /** + * Get workingTimeSchedule from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WorkingTimeSchedule} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WorkingTimeSchedule get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WorkingTimeSchedule::createFromDiscriminatorValue); + } + /** + * Update the navigation property workingTimeSchedule in users + * @param body The request body + * @return a {@link WorkingTimeSchedule} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WorkingTimeSchedule patch(@jakarta.annotation.Nonnull final WorkingTimeSchedule body) { + return patch(body, null); + } + /** + * Update the navigation property workingTimeSchedule in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link WorkingTimeSchedule} + * @throws ODataError When receiving a 4XX or 5XX status code + */ + @jakarta.annotation.Nullable + public WorkingTimeSchedule patch(@jakarta.annotation.Nonnull final WorkingTimeSchedule body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration); + final HashMap> errorMapping = new HashMap>(); + errorMapping.put("XXX", ODataError::createFromDiscriminatorValue); + return this.requestAdapter.send(requestInfo, errorMapping, WorkingTimeSchedule::createFromDiscriminatorValue); + } + /** + * Delete navigation property workingTimeSchedule for users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation() { + return toDeleteRequestInformation(null); + } + /** + * Delete navigation property workingTimeSchedule for users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get workingTimeSchedule from users + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation() { + return toGetRequestInformation(null); + } + /** + * Get workingTimeSchedule from users + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property workingTimeSchedule in users + * @param body The request body + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkingTimeSchedule body) { + return toPatchRequestInformation(body, null); + } + /** + * Update the navigation property workingTimeSchedule in users + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final WorkingTimeSchedule body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) { + Objects.requireNonNull(body); + final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters); + requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(requestAdapter, "application/json", body); + return requestInfo; + } + /** + * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + * @param rawUrl The raw URL to use for the request builder. + * @return a {@link WorkingTimeScheduleRequestBuilder} + */ + @jakarta.annotation.Nonnull + public WorkingTimeScheduleRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new WorkingTimeScheduleRequestBuilder(rawUrl, 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 workingTimeSchedule from users + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetQueryParameters implements QueryParameters { + /** + * Expand related entities + */ + @jakarta.annotation.Nullable + public String[] expand; + /** + * Select properties to be returned + */ + @jakarta.annotation.Nullable + public String[] select; + /** + * Extracts the query parameters into a map for the URI template parsing. + * @return a {@link Map} + */ + @jakarta.annotation.Nonnull + public Map toQueryParameters() { + final Map allQueryParams = new HashMap(); + allQueryParams.put("%24expand", expand); + allQueryParams.put("%24select", select); + return allQueryParams; + } + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class GetRequestConfiguration extends BaseRequestConfiguration { + /** + * Request query parameters + */ + @jakarta.annotation.Nullable + public GetQueryParameters queryParameters = new GetQueryParameters(); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PatchRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/endworkingtime/EndWorkingTimeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/endworkingtime/EndWorkingTimeRequestBuilder.java new file mode 100644 index 00000000000..bec6a604106 --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/endworkingtime/EndWorkingTimeRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.beta.users.item.solutions.workingtimeschedule.endworkingtime; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the endWorkingTime method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class EndWorkingTimeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link EndWorkingTimeRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public EndWorkingTimeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/solutions/workingTimeSchedule/endWorkingTime", pathParameters); + } + /** + * Instantiates a new {@link EndWorkingTimeRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public EndWorkingTimeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/solutions/workingTimeSchedule/endWorkingTime", rawUrl); + } + /** + * Triggers the policies associated with the end of working hours. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post() { + post(null); + } + /** + * Triggers the policies associated with the end of working hours. + * @param requestConfiguration 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); + } + /** + * Triggers the policies associated with the end of working hours. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Triggers the policies associated with the end of working hours. + * @param requestConfiguration 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 EndWorkingTimeRequestBuilder} + */ + @jakarta.annotation.Nonnull + public EndWorkingTimeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new EndWorkingTimeRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +} diff --git a/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/startworkingtime/StartWorkingTimeRequestBuilder.java b/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/startworkingtime/StartWorkingTimeRequestBuilder.java new file mode 100644 index 00000000000..ee3d5b1eb7b --- /dev/null +++ b/src/main/java/com/microsoft/graph/beta/generated/users/item/solutions/workingtimeschedule/startworkingtime/StartWorkingTimeRequestBuilder.java @@ -0,0 +1,91 @@ +package com.microsoft.graph.beta.users.item.solutions.workingtimeschedule.startworkingtime; + +import com.microsoft.graph.beta.models.odataerrors.ODataError; +import com.microsoft.kiota.BaseRequestBuilder; +import com.microsoft.kiota.BaseRequestConfiguration; +import com.microsoft.kiota.HttpMethod; +import com.microsoft.kiota.RequestAdapter; +import com.microsoft.kiota.RequestInformation; +import com.microsoft.kiota.RequestOption; +import com.microsoft.kiota.serialization.Parsable; +import com.microsoft.kiota.serialization.ParsableFactory; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +/** + * Provides operations to call the startWorkingTime method. + */ +@jakarta.annotation.Generated("com.microsoft.kiota") +public class StartWorkingTimeRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new {@link StartWorkingTimeRequestBuilder} and sets the default values. + * @param pathParameters Path parameters for the request + * @param requestAdapter The request adapter to use to execute the requests. + */ + public StartWorkingTimeRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/solutions/workingTimeSchedule/startWorkingTime", pathParameters); + } + /** + * Instantiates a new {@link StartWorkingTimeRequestBuilder} and sets the default values. + * @param rawUrl The raw URL to use for the request builder. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public StartWorkingTimeRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) { + super(requestAdapter, "{+baseurl}/users/{user%2Did}/solutions/workingTimeSchedule/startWorkingTime", rawUrl); + } + /** + * Triggers the policies associated with the end of working hours. + * @throws ODataError When receiving a 4XX or 5XX status code + */ + public void post() { + post(null); + } + /** + * Triggers the policies associated with the end of working hours. + * @param requestConfiguration 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); + } + /** + * Triggers the policies associated with the end of working hours. + * @return a {@link RequestInformation} + */ + @jakarta.annotation.Nonnull + public RequestInformation toPostRequestInformation() { + return toPostRequestInformation(null); + } + /** + * Triggers the policies associated with the end of working hours. + * @param requestConfiguration 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 StartWorkingTimeRequestBuilder} + */ + @jakarta.annotation.Nonnull + public StartWorkingTimeRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) { + Objects.requireNonNull(rawUrl); + return new StartWorkingTimeRequestBuilder(rawUrl, requestAdapter); + } + /** + * Configuration for the request such as headers, query parameters, and middleware options. + */ + @jakarta.annotation.Generated("com.microsoft.kiota") + public class PostRequestConfiguration extends BaseRequestConfiguration { + } +}